What is WebRTC and how does it work?
Updated · Independent guidance
WebRTC means Web Real-Time Communication. Browser APIs support real-time audio, video and data between peers, with relays when a direct route is unavailable. ICE discovers connection candidates; STUN helps discover a reachable address and TURN relays traffic. Address discovery explains why WebRTC privacy tests inspect IP candidates.
Run the free fingerprint test →How ICE, STUN and TURN work together
Applications exchange session information through signaling, which the application supplies. ICE gathers and checks candidate routes between peers. Host candidates describe local interfaces; server-reflexive candidates describe an address learned using STUN; relay candidates use a TURN server. Peer-reflexive candidates may be discovered during connectivity checks.
STUN does not carry a call's media as a TURN relay does. WebRTC commonly uses UDP, but available transports and fallback routes depend on the network and implementation. There is no single WebRTC port whose availability proves that all calls or privacy protections work.
WebRTC vs WebSocket
| Question | WebRTC | WebSocket |
|---|---|---|
| Connection model | Peer connection; a relay can carry traffic. | A persistent connection between a client and a server. |
| Typical role | Real-time voice, video and peer data. | Application messages, updates and signaling. |
| Address discovery | ICE uses candidates and connectivity checks. | The client connects to the application's server URL. |
| Delivery options | Data channels can be ordered or unordered with configurable reliability. | The standard WebSocket connection provides ordered, reliable messages. |
An application can use WebSocket for signaling and WebRTC for media. The technologies can complement each other; neither is universally faster or better for every workload.
Why can WebRTC expose IP addresses?
Peers need candidate routes to establish connectivity. Candidate addresses may reveal network information. Browsers can conceal local host addresses with mDNS names, but that does not eliminate every possible public-address observation. Use the WebRTC address test guide to distinguish public, private and mDNS results.
Does WebRTC always need camera permission?
No. Media capture requires the relevant permission, but a diagnostic data channel can gather candidates without asking to use a camera or microphone. This site's homepage does that automatically and contacts an external STUN service. Reading this guide does not start that check.
What if a WebRTC test shows nothing?
No candidates can result from browser restrictions, unsupported APIs, a blocked STUN path or the collection time limit. It does not diagnose a camera failure or prove a VPN is safe. For call troubleshooting, inspect the application's permissions and connection diagnostics separately. For IP exposure, change one protection setting and retest.
Sources and scope
Browser behavior is described using official documentation. Test-specific details describe this site's implementation. No browser benchmark or population study is claimed.