2009-10-24 98 views
0

我在C#.NET中编写代理服务器。我的代理服务器已托管在VM上(例如,vm1)。现在,当我通过IE访问互联网vm1时,请求按预期通过代理服务器。但是如果我使用另一台虚拟机说vm2通过IE访问互联网,则会显示“Internet Explorer无法显示网页”。我检查了IE的代理设置。它看起来正确。我认为请求没有达到vm1。否则,代理服务器会记录请求的人。IE未检测到托管在虚拟机上的代理服务器

需要帮助的人。

-datte

+0

这似乎是你的虚拟机中的TCP/IP设置有问题。你能否提供网络设置(如'ipconfig'和/或'route print'所示)?这可能有助于找到解决方案。 – 2009-10-24 07:55:39

+0

尝试使用wireshark查看网络流量。 确保您的流量通过代理服务器进行泄露 – DanJ 2009-10-24 08:37:58

回答

0

这是我的'route print'输出。这是在虚拟机上。

=========================================================================== 
Interface List 
0x1 ........................... MS TCP Loopback interface 
0x2 ...00 0c 29 f9 86 a5 ...... AMD PCNET Family PCI Ethernet Adapter - Packet Scheduler Miniport 
=========================================================================== 
=========================================================================== 
Active Routes: 
Network Destination  Netmask   Gateway  Interface Metric 
      0.0.0.0   0.0.0.0  192.168.0.1 192.168.0.104 10 
     127.0.0.0  255.0.0.0  127.0.0.1  127.0.0.1 1 
     192.168.0.0 255.255.255.0 192.168.0.104 192.168.0.104 10 
    192.168.0.104 255.255.255.255  127.0.0.1  127.0.0.1 10 
    192.168.0.255 255.255.255.255 192.168.0.104 192.168.0.104 10 
     224.0.0.0  240.0.0.0 192.168.0.104 192.168.0.104 10 
    255.255.255.255 255.255.255.255 192.168.0.104 192.168.0.104 1 
Default Gateway:  192.168.0.1 
=========================================================================== 
Persistent Routes: 
    None 

而且,这是我的IPCONFIG输出

Windows IP Configuration 


Ethernet adapter Local Area Connection: 

     Connection-specific DNS Suffix . : 
     IP Address. . . . . . . . . . . . : 192.168.0.104 
     Subnet Mask . . . . . . . . . . . : 255.255.255.0 
     Default Gateway . . . . . . . . . : 192.168.0.1 

我的代理服务器在一台机器托管与IP 192.168.0.102。

帮助将不胜感激。

-Datte