network-programmingwebrtcturncoturn

WebRTC connection to TURN sequence


Is it possible to connect WebRTC peers to different TURN servers and then establish the connection between TURNs?

So each peer connected to its own TURN server and then these TURNs connecting to each other

enter image description here


Solution

  • Yes this isn't a problem at all!

    For a TURN allocation you really have two entry points. The Server and Relay listener.

    WebRTC for the Curious also has a visualization here

    Two TURN Allocations visualized