Comment by valorzard

1 day ago

So, having talked to people in the WebRTC community about this, you should be able to use WebRTC in a local network without having to connect to STUN/TURN

STUN/TURN matters because if you are connecting to a remote peer, you have no idea how to reach them. STUN/TURN gives you a "map" to get to the remote peer.

If you are on a VPN that doesn't matter very much (see: Hamachi)

Yeah if you know the ip of your peer you don't need STUN/TURN from what I remember.

  • If it's ipv6, I think that's true. If it's ipv4, then you still have problems. They could be behind NAT or worse, CGNAT.