UDP hole punching host-specific failure

后端 未结 3 1800
栀梦
栀梦 2021-01-22 08:00

I wrote a program that sets-up peer-to-peer links. The programm, which can be found at http://basyl.co.uk/code/punch/doc/files/Readme-txt.html, is in two parts: a server that r

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-22 08:27

    the client doesn't work on a particular host when the server is on the same host
    

    In some corner cases, NATs only accept traffic from the target IP address:port used to punch the hole. Since it is not the one of the remote NAT-ed peer, they block the traffic from it. This could explain your issue.

提交回复
热议问题