WebRTC lets browsers establish real-time audio, video, and data connections. For a small audio room, browsers can often communicate directly. The difficult part is that home routers, cellular carriers, corporate firewalls, and NAT configurations do not all allow the same connection paths.
Signaling: introducing the browsers
Before two browsers can exchange media, they need a way to exchange offers, answers, ICE candidates, and application metadata. That is signaling. Murmivo handles signaling over its WebSocket endpoint, but the signaling server is not automatically the path that carries the audio.
STUN: finding a usable network address
A STUN server helps a browser learn how it appears from the public internet. The browser can then advertise candidate connection paths to the other participant. When both sides can establish a direct route, the media flows peer to peer and the Murmivo web server is not in the media path.
TURN: the fallback relay
Some network combinations cannot establish a direct path. TURN provides a public relay that both browsers can reach. In that case, the relay forwards packets between the participants. TURN costs bandwidth because the relay handles the traffic, which is one reason audio-only rooms are much cheaper to self-host than large video conferences.
Why Cloudflare Tunnel is not TURN
An HTTP tunnel can expose the Murmivo website, REST API, and WebSocket signaling endpoint without directly opening the application port. WebRTC media relay is a different protocol role. A production deployment still needs a publicly reachable TURN service when direct peer connectivity fails.
How to tell what path a call is using
WebRTC statistics expose the selected ICE candidate pair, round-trip time, packet loss, jitter, and candidate type. Murmivo uses those statistics for connection-quality indicators. A relay candidate indicates TURN is being used; other candidate types usually indicate a more direct path.
What this means for self-hosting
For a small audio-first service, one VPS can host the web app, WebSocket signaling, SQLite, and coturn. As usage grows, TURN bandwidth and the browser mesh size become the first constraints to watch. Keeping room limits adjustable and capped protects both participant devices and server resources.
