UDP Holepunching behind NAT

前端 未结 3 671
独厮守ぢ
独厮守ぢ 2021-01-31 06:21

I am trying to implement a simple sketch of UDP-Holepunching in Java to test it\'s concept and use it in my C/C++ application later on.

Concept:

As from Wikip

3条回答
  •  旧时难觅i
    2021-01-31 06:37

    Given your conceptual outline, I think there is an issue at point 4. Although A punches a hole through its own NAT, when B attempts to reach this hole it is unaware of the port on A's NAT (or more correctly/commonly - NAPT) and hence A's NAT drops the packet when B attempts to communicate.

提交回复
热议问题