怎样让WebBrowser使用指定的IP地址?解决思路
怎样让WebBrowser使用指定的IP地址?
我本机的网卡上绑定有多个IP地址,如:
192.168.1.6
192.168.1.7
192.168.1.8
http://192.168.1.1/ 有我需要访问的Http资源,
如果我用 HttpWebRequest 对象来访问资源,可以设置 WebRequest.ServicePoint.BindIPEndPointDelegate 属性来使用指定的IP来访问目标资源,但是如果使用 WebBrowser 控件来访问资源,设置ServicePoint属性好像没有什么作用了,请有经验的朋友告诉我该怎么做,谢谢!
------解决方案--------------------
WebBrowser is using WinInet for network access. WinInet does not support specifying the local address or port to use for TCP connections.
------解决方案--------------------
WebBrowser 是使用WinIner实现网络访问的,他不支持指定逻辑地址或端口,请使用TCP连接
------解决方案--------------------
tcp
我本机的网卡上绑定有多个IP地址,如:
192.168.1.6
192.168.1.7
192.168.1.8
http://192.168.1.1/ 有我需要访问的Http资源,
如果我用 HttpWebRequest 对象来访问资源,可以设置 WebRequest.ServicePoint.BindIPEndPointDelegate 属性来使用指定的IP来访问目标资源,但是如果使用 WebBrowser 控件来访问资源,设置ServicePoint属性好像没有什么作用了,请有经验的朋友告诉我该怎么做,谢谢!
------解决方案--------------------
WebBrowser is using WinInet for network access. WinInet does not support specifying the local address or port to use for TCP connections.
------解决方案--------------------
WebBrowser 是使用WinIner实现网络访问的,他不支持指定逻辑地址或端口,请使用TCP连接
------解决方案--------------------
tcp