.Net Remoting,防火墙问题
我有一个在 Windows 2003 Server 上侦听的 .NET 远程处理服务。据我所知,Windows 防火墙已正确配置,可以让远程应用程序的信息出去。
在我的 PC 中,我有通信的另一部分,尝试执行远程对象中的方法。理论上,没有防火墙可以干扰,但会抛出此异常:
SocketExcepcion (Error produced during the connection try, etc.)
我已经使用 Microsoft 网络监视器捕获了流量,并且我看到了“服务器和客户端”之间发生的流量。
想法?任何帮助将不胜感激。
谢谢!
I have a .NET remoting service listening on a Windows 2003 Server. As far as I know, the Windows Firewall is properly configured to let the information of the Remoting Application go out.
In my PC I have the other part of the communication, trying to execute methods that lives in the Remoting object. In theory, there are not firewalls that can interfere, but this exception is thrown:
SocketExcepcion (Error produced during the connection try, etc.)
I've captured traffic with Microsoft Network Monitor, and I've seen traffic going on between "server and client".
Ideas?. Any help would be very appreciated.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,Windows Remoting(WCF 的前身)相当有限,因为存在防火墙问题...基本上,它无法与防火墙一起工作,即使您在防火墙上打了一个洞,问题是 NAT IP 地址,因此您可能会收到连接超时套接字错误消息。它可能会帮助您并再次确保通过允许流量重定向可以轻松解决问题,我已经写了一篇关于 CodeProject 这可能会对您有所帮助。您可以做的就是将应用程序放在防火墙所在的端点上,输入公开面向互联网的IP地址,然后输入要重定向到远程服务器的IP地址。
如果您愿意,请随时与我联系,
希望这有帮助,
此致,
汤姆.
Ok, Windows Remoting (the predecessor to WCF) is quite limiting as there are firewalling issues...basically, it will not work with a firewall, even though you have punched a hole in the firewall, the problem is the NAT'ting of the IP addresses, hence likely, you're getting a connection timed out socket error message. It might help you and re-assure that the problem may easily be remedied by allowing the traffic to be redirected, I have written an article on CodeProject which may help you. What you can do is put the application on the end point where the firewall is, put in the IP address that is facing publicly to the internet, and put the in the IP address that is to be redirected to the remoting server.
Feel free to contact me anytime if you so wish,
Hope this helps,
Best regards,
Tom.