2009-10-24 101 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