WebRTC lets browsers make direct peer-to-peer connections for video calls, screen sharing and file transfer without plugins. To set up those connections it gathers "ICE candidates," the network addresses your device can be reached on, using STUN servers to discover your public IP. A web page can trigger that process with a few lines of JavaScript.

That's the leak. A site can ask WebRTC for candidates and read your local network IP and sometimes your public IP, bypassing the browser's proxy settings. People on VPNs found their home address exposed this way for years. Modern browsers now hide local addresses behind random mDNS names by default, but VPN users should still run a leak test after setup.

Tor Browser is patched so WebRTC can't reveal your real address. Other browsers with a "Tor mode" haven't always been as careful. Ironically, WebRTC is also what powers Snowflake, where its ability to punch through NATs is exactly what's needed for volunteer proxies to reach censored users.