使用免费的公共服务器使用UDP NAT孔打孔
我拥有UDP P2P应用程序,目前依靠至少一个客户端在路由器上转发端口,并与另一个客户端共享其公共IP地址。
我想删除此constaint,因此一直在阅读与昏迷,转弯,冰等有关的文章,以及有关此类孔打孔的文章,这似乎是事实上的参考:
https://bford.info/pub/net/net/p2pnat/
我认为我认为我对涉及什么的公平概念 -服务器充当集合,并为每个客户提供对方的公共IP地址,然后他们开始相互通信。
但是我对眩晕服务器的理解是,它们没有提供此功能 - 他们只为客户提供了一种获得自己的公共IP地址和NAT状态的方法。因此,如果我是正确的,我不能将公共免费的眩晕服务器用于打孔,对吗?
如果是这样,这是否意味着我需要写并托管自己的服务器,如果我想这样做?还是还有其他公共免费服务器可以以通用/标准化的方式充当UDP孔打孔的集合?
I have UDP P2P app that currently relies on at least one of the clients enabling port forwarding on their router, and sharing their public IP address with the other client.
I want to remove this constaint, and so have been reading articles pertaining to STUN, TURN, ICE, etc, and articles about hole punching such as this, which seems to be the de facto reference:
https://bford.info/pub/net/p2pnat/
I think I've have fair concept of what is involved - the server acts as a rendezvous and provides each client with the public IP address of the other, who then start communicating with each other.
But my understanding of STUN servers is that they don't provide this functionality - they only provide a client with a way to get thier own public IP address and NAT status. So, if I am correct, I cannot use a public free STUN server for hole punching, is this right?
If so, does this mean I need to write and host my own server if I want to do this? Or are there other public free servers that can act as a rendezvous for UDP hole punching in a generic/standardised way?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论