When you start a video chat in your browser, there is no app to install and no plugin to approve, yet a live video call begins within a few seconds. The technology behind this is called WebRTC, short for Web Real-Time Communication. It is built into every modern browser, and it is the reason a site like Miloo can connect two people without asking either of them to create an account.
This guide explains how a WebRTC call is set up, why some calls need help from a relay server, and what all of this means for your privacy. You do not need any technical background to follow it.
What WebRTC Actually Is
WebRTC is a set of standards that lets two browsers exchange audio, video and data directly with each other. The key word is directly. In a traditional video service, your video travels to a company’s server and is then forwarded to the other person. In a peer-to-peer call, the video can travel straight from your device to theirs.
That design has two practical benefits. Calls tend to have lower delay because the data takes a shorter path, and the service does not have to carry every video stream through its own servers. It is one reason browser-based platforms can stay fast without requiring heavy native apps.
Step One: Signaling
Two browsers cannot simply find each other on the internet. Before a call starts, they need to introduce themselves and agree on how to talk: which video formats each supports, and how each can be reached. This introduction phase is called signaling.
Signaling is handled by a server. On Miloo, a real-time connection to the server is used to pair two waiting people and pass these small setup messages between them. The messages describe capabilities and network details. They do not contain your video or audio. Once the two browsers have exchanged enough information, the server steps out of the way of the media itself.
Step Two: Finding a Path (STUN and ICE)
Most devices sit behind a home router that uses network address translation, which means the device does not know its own public address. To discover it, the browser asks a lightweight helper called a STUN server, which simply replies with the address it sees.
The browser then gathers a list of possible routes, called ICE candidates, and the two sides try them in turn until one works. This process, known as ICE, is why a call sometimes takes a moment to connect: the browsers are testing several possible paths and keeping the best one.
When a Direct Path Fails: TURN Relays
Some networks, such as strict corporate or campus networks and certain mobile carriers, block direct connections. When no direct path works, WebRTC falls back to a TURN server, which relays the traffic between the two people.
This is why video chat can work on your home wifi but fail between two different mobile networks if a platform has no relay configured. A relay costs more to run because the media passes through it, so it is used only when it is genuinely needed. Even then, the relay forwards encrypted data and cannot read it.
How the Media Stays Encrypted
WebRTC requires encryption. Audio and video are protected with a standard called SRTP, and the keys are negotiated through a secure handshake called DTLS. Browsers do not allow an unencrypted WebRTC call, so encryption is not an optional setting a site can forget to switch on.
In practice, this means someone watching traffic on a public network cannot simply watch your call, and a TURN relay cannot see your video even though it carries it.
What This Means for Your Privacy
Peer-to-peer connections have one trade-off worth knowing. To reach each other directly, the two browsers exchange network addresses, so in a direct connection the other person’s browser can learn your public IP address. That address reveals roughly your internet provider and general area, not your street or name, but it is still information you may prefer to keep private.
- Use a VPN if you want to hide your real network address from the person you are chatting with.
- Mind your surroundings. The camera feed shows your room, so check what is visible behind you. Our privacy checklist covers this in detail.
- Use the safety tools. Skip, report and block work instantly. Read how in our guide to moderation on Miloo.
Conclusion
WebRTC turns your browser into a direct line to another person: a server makes the introduction, helpers find a route, and the call itself is encrypted. Understanding those steps explains why calls connect quickly, why they occasionally need a relay, and which privacy habits matter most. For more on staying safe, visit our Safety Center.