ISP或Windows防火墙阻止UDP连接。

huangapple go评论97阅读模式
英文:

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

huangapple
  • 本文由 发表于 2020年8月11日 01:52:48
  • 转载请务必保留本文链接:https://go.coder-hub.com/63345500.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定