DEV Community

Discussion on: Scalable Broadcasting Using WebRTC

Collapse
 
abhicoding profile image
Abhishek Shingane
Sadly no, things aren't so easy. STUN servers have one simple job: to tell a client its public IP. That way if a client is behind a NAT and only knows its private IP it can find out its public IP. We are using our own set of STUN/TURN servers (inside the same docker-compose as Janus), which becomes an issue when Janus creates its ICE candidates given that Janus and STUN are on the same LAN. Because the STUN server returns to Janus its public IP as the one it has inside the Docker containers' network, a private IP. If you don't know a lot about networking, just know that this is REALLY bad.

paragraph is duplicated

Collapse
 
aminarria profile image
Amin Arria

Fixed, thanks!