Which ports used for direct connection #470
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, For firewalls, the idea is that the connection is negotiated and open from both sides at the same time, meaning UDP datagrams are send from each side to establish the connection. Therefore, firewalls on each side will consider the remote connection attempt as an answer to the local connection attempt. By default any available port above 1024 may be used, but there are settings |
Beta Was this translation helpful? Give feedback.
Hi,
Even if some WebRTC agents can use a local TCP connection where one device listens and one device connects (Firefox supports it, libdatachannel supports it only with libnice backend), that's not how WebRTC connections are open in general. WebRTC primarily uses UDP and relies on ICE to traverse both NATs and firewalls.
For firewalls, the idea is that the connection is negotiated and open from both sides at the same time, meaning UDP datagrams are send from each side to establish the connection. Therefore, firewalls on each side will consider the remote connection attempt as an answer to the local connection attempt.
By default any available port above 1024 may be used, but there are se…