A WebRTC leak exposes your real public IP to websites through browser peer-connection APIs, even when a VPN is connected. This test gathers ICE candidates via public STUN servers and flags any public IP that differs from the address your VPN should be showing.
WebRTC enables direct peer-to-peer connections in the browser for video calls, file sharing, and gaming. To find the best path between peers, it runs the ICE process, which gathers candidate addresses for your device.
To discover your public-facing address, WebRTC queries a STUN server, which reports back the IP it sees - your real public IP. Because this happens at the browser level, it can bypass a VPN that only tunnels regular traffic, exposing the address the VPN is supposed to hide.
Web pages can read these candidates with a few lines of JavaScript, with no permission prompt.