通过 Internet 的 WCF P2P
大家好,我正在尝试学习如何在 Windows Communication Foundation 中创建 P2P 应用程序,到目前为止我已经创建了一个简单的测试客户端,可以在 Intranet 上正常通信。也就是说......我可以在我自己的机器上多次运行该应用程序,它们都可以相互通信,我也可以将它放在我的家庭网络上的另一台机器上,它们都可以相互通信。
问题在于当我将应用程序发送给朋友进行测试时。一切正常,只是没有收到消息。就好像没有人在那里一样。
我对 NAT 边缘遍历进行了各种研究,这些信息让我不知所措,而且我看到的所有地方似乎都没有解决问题。
我听到各种各样关于防火墙的问题,需要启用边缘遍历,但我已经尝试了所有建议,但仍然不起作用。我什至禁用了本地和远程计算机上的防火墙,但仍然没有任何反应。
任何人都可以提供有关如何有效地突破并使这些应用程序能够进行通信而无需执行各种设置程序和手动防火墙配置(这似乎仍然不起作用)的见解吗?
Hey guys I am trying to learn how to create a P2P application in Windows Communication foundation and I have a simple test client created so far that can communicate on the Intranet just fine. That is... I can run the application multiple times on my own machine and they can all communicate to each other, and I can also put it on another machine on my home network and they can all communicate with each other.
The problem lies in when I send the application to a friend for testing. Everything works fine, it's just that the messages aren't received. It's as if nobody is there.
I've done all sorts of research on NAT edge traversal and I'm overwhelmed by the information and everywhere I look people don't seem to have solved the problem.
I hear all sorts of things about firewalls being the issue with edge traversal needing to be enabled, but I've tried all the suggestions and it still doesn't work. I've even disabled the firewalls on both machines local and remote and nothing happens still.
Could anybody provide any insight on how to effectively punch through and have these apps be able to communicate without having to do all sorts of setup procedures and manual firewall configuration(which still seem to not work)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一般来说,如果没有在执行 NAT 的路由器上进行一些配置,就无法连接到 NAT 后面的计算机。
大多数 P2P 网络在这些情况下所做的就是使用超级节点 – 不是超级节点的计算机NAT 后面(或已正确配置端口转发),用于帮助连接其他计算机(位于 NAT 后面)。
In general, there is no way to connect to a computer behind NAT without some configuration on the router that does the NATing.
What most P2P networks do in those situations is to use supernodes – computers that are not behind NAT (or that have properly configured port forwarding) that are used to help connect other computers (that are behind NAT).