Behind NAT to behind NAT connection

前端 未结 2 1134
离开以前
离开以前 2020-12-10 04:35

I\'ve come across an interesting problem. Basically I have 2 mobile phones that are both behind NATs. I want to communicate directly between the 2 devices using UDP.

2条回答
  •  一生所求
    2020-12-10 05:09

    You need a mediator server, so the clients can tell where they are. Then one opens a server by uPNP, and the other connects to it.

提交回复
热议问题