Ad

Signaling, Firewall And NAT Traversal SimplewebRTC

- 1 answer

I'm a noob, and I'm starting to learn about webRTC, recently I found a web page called simplewebrtc, I read about the demo, but I don't understand how they manage the firewalls and NAT traversal in a network, I know that webRTC uses STUN Servers but I can't find them in the source code of the demo from simplewebRTC, can anybody explain me that please?

Thank you

Ad

Answer

Currently SimpleWebRTC uses the public google STUN server as default, check this line.

About the NAT/firewall traversal: as you already pointed out this is done using a STUN (or TURN) server. The STUN protocol simply allows clients that are trying to establish a connection to discover each others public IPs, with which they can establish direct connections. If some client is behind a symmetric NAT then a TURN server that acts as a relay will be necessary.

You can find a more detailed explanation about STUN/TURN here.

Ad
source: stackoverflow.com
Ad