C# IE未检测到托管在VM上的代理服务器
我当时正在用C#NET编写一个代理服务器。我的代理服务器托管在虚拟机上(比如说vm1)。现在,当我在vm1中通过IE访问internet时,请求将按预期通过代理服务器。但如果我使用另一个虚拟机,比如说vm2通过IE访问internet,则会显示“internet Explorer无法显示网页”。我检查了IE的代理设置。它看起来是正确的。我认为请求根本没有到达vm1。否则,代理服务器将记录请求的用户 需要帮助,伙计们C# IE未检测到托管在VM上的代理服务器,c#,.net,internet-explorer-7,virtual-machine,proxy-server,C#,.net,Internet Explorer 7,Virtual Machine,Proxy Server,我当时正在用C#NET编写一个代理服务器。我的代理服务器托管在虚拟机上(比如说vm1)。现在,当我在vm1中通过IE访问internet时,请求将按预期通过代理服务器。但如果我使用另一个虚拟机,比如说vm2通过IE访问internet,则会显示“internet Explorer无法显示网页”。我检查了IE的代理设置。它看起来是正确的。我认为请求根本没有到达vm1。否则,代理服务器将记录请求的用户 需要帮助,伙计们 -datte这是我的“路线打印”输出。这是在虚拟机上 =============
-datte这是我的“路线打印”输出。这是在虚拟机上
===========================================================================
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这似乎表明您的虚拟机中的TCP/IP设置有问题。您能否提供网络设置(如
ipconfig
和/或路由打印
所示)?这可能有助于找到解决方案。请尝试使用wireshark查看网络流量。确保通过代理重新使用您的流量