Short answer
A WebRTC leak happens when your browser exposes an IP address you meant to hide, usually your real public address while a VPN is on, during the setup of a WebRTC connection. Websites can trigger that setup with a few lines of JavaScript, without asking permission, and read the addresses it finds. You can test for it with the privacy check.
What WebRTC is
WebRTC (Web Real-Time Communication) is built into every modern browser and powers video calls, voice chat and file sharing directly between browsers, as in Google Meet or Discord on the web. For two browsers to talk directly, each needs to know how the other can be reached, including from behind NAT.
How addresses leak
To find routes, the browser gathers ICE candidates: the addresses it might be reached on.
- Host candidates: the device's own addresses, such as
192.168.1.20or an IPv6 address. - Server-reflexive candidates: the public address a STUN server sees when the browser sends it a small UDP packet, such as
stun.l.google.com:19302. - Relay candidates: addresses of a TURN relay, used when a direct path fails.
Any page can create a connection object, ask for candidates and read them, with no camera or microphone permission. If the STUN request goes out outside the VPN tunnel, the server-reflexive candidate is your real ISP address, and the page now knows it even though every normal request came from the VPN.
When it happens
- The VPN is a browser extension that only proxies web requests, not the UDP traffic WebRTC uses. This is the most common cause.
- The VPN uses split tunnelling or leaves some traffic outside the tunnel.
- The VPN tunnels IPv4 but not IPv6, so an IPv6 host or reflexive candidate exposes your real address.
- You use a plain HTTP or SOCKS proxy, which WebRTC traffic can bypass.
A properly configured system-wide VPN usually does not leak: the STUN request goes through the tunnel and the STUN server sees the VPN address, which is harmless.
Local addresses and mDNS
Browsers used to expose local addresses like 192.168.1.20 to any page. Those are not public, but they helped fingerprint users and map home networks. Since around 2019 the major browsers replace local host candidates with random .local names (mDNS) unless the page has camera or microphone permission. A leak test that shows a xxxx.local name is showing that protection at work, not a leak.
How to test for a WebRTC leak
- Note your real address on What is my IP? with the VPN off.
- Turn the VPN on and open the privacy check.
- Look at the WebRTC result. If any address listed is your real public IP, or belongs to your home ISP rather than the VPN, you have a leak.
The check runs in your browser, and its results are not stored. It also compares your browser's time zone and language with the IP location, another common giveaway.
How to fix it
- Use a system-wide VPN app rather than a browser extension, with IPv6 tunnelled or disabled and the kill switch on.
- Enable the VPN app's or extension's WebRTC protection, if it has one.
- In Firefox, setting
media.peerconnection.enabledto false inabout:configturns WebRTC off entirely; Chromium-based browsers need an extension or policy to limit it. This breaks browser video calls. - Tor Browser disables WebRTC by default.
Then run the test again to confirm. For other leak types, see what a VPN does and does not hide.
[ FAQ ]
Frequently asked questions
Does WebRTC leak my IP without a VPN?
Without a VPN there is nothing extra to leak: websites already see your public address. WebRTC can still reveal local network addresses in older browsers, but modern browsers hide them behind random .local names.
Do I need to disable WebRTC?
Usually not. A system-wide VPN that tunnels all traffic, including IPv6, prevents the leak while keeping video calls working. Disabling WebRTC is a fallback if you rely on a browser extension or proxy.
Can a website see my local IP address through WebRTC?
Not in current versions of the major browsers, unless you have given the page camera or microphone permission. They show a random mDNS name ending in .local instead.
Is a WebRTC leak test stored anywhere?
The privacy check on this site runs in your browser and does not store the results. The STUN servers it contacts see your address, as any server you connect to does.
Last updated · All articles · API docs