英文:
ISP or Windows firewall blocking UDP connection
问题
我的问题是,我可以与一些朋友一起玩,但与其他人不行,也就是说,我的UDP连接只适用于某些电脑。我认为唯一可能的原因是他们的ISP或防火墙阻止了UDP端口。是否有任何解决方法,可以使其在不手动添加规则的情况下对所有人都有效?提前感谢。
英文:
I have made a online player game in which i use TCP connection between server and client, and UDP (DatagramSocket) between clients (its a real time game).
My problem is that i can play with some friends but no with others, that is to say, my UDP connection works only with some PCs. I think the only possible reason for this is that their ISP or Firewall is blocking the UDP port.
Is there any solution to make it works for all without adding a rule manually?
Thanks in advance
答案1
得分: 1
Firewalls和ISP可能是问题,但很可能是端口转发设置不正确。尝试查看游戏中的UPnP(即插即用)。
但是,对于遇到端口问题的PC,尝试使用:端口检查工具
英文:
Firewalls and ISP could be the problem but its most likely port-forwarding not setup correctly. Try to look into UPnP (Plug and Play) for games.
But, for PCs that got port problems, try to use: Port Checker tool
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论