UDP hole punching not going through on 3G

后端 未结 2 837
心在旅途
心在旅途 2021-01-30 07:12

I\'m trying to implement in a software a hole punching feature. The thing is, I\'m implementing this with an already made TCP Server to communicate with Users.

Here\'s w

2条回答
  •  一整个雨季
    2021-01-30 07:38

    The NAT you are behind is symmetric, or it changes your outgoing port number depending on your destination. Hole punching through symmetric NAT requires a different method (either TURN or UDP multi-hole punching). Try doing it this way: https://drive.google.com/file/d/0B1IimJ20gG0SY2NvaE4wRVVMbG8/view?usp=sharing

提交回复
热议问题