Support for Asymmetric Persistent Outbound Connections from NAT-Restricted Peers

35 views
Skip to first unread message

Francisco Diseñador web

unread,
Apr 28, 2025, 1:26:53 PM4/28/25
to discuss-webrtc

Currently, if one peer accepts direct WebRTC connections while the other only accepts indirect connections, a turn connection is established for both peers.
I understand that mobile networks don't allow ports to be opened, but I've opened a way to do it without the mobile network opening ports.

In the example case, if a PC supports direct connections and a mobile phone doesn't, the solution would be to send two persistent requests from the mobile phone to the PC. The PC would have to open two ports.
One connection would be for the PC to write its data in the response, while the other connection would be for the mobile phone to continue writing to that request, and the PC would only read its response.

This is something I did by creating Golang servers, and I don't know why, after testing with both PC and mobile, both peers use the turn server to send and receive data, which isn't optimal.
My tests have been on persistent TCP connections; I don't know if this is possible on UDP connections.

This way it would not be necessary to open ports from one side.

Reply all
Reply to author
Forward
0 new messages