A WebRTC leak happens when your browser's WebRTC feature reveals your real public IP address to a website, even though your VPN or proxy hides it in normal web traffic. WebRTC gathers ICE candidates by asking a STUN server over UDP what address it sees, and that request bypasses most proxies. Test for it with a leak test site, then fix it by disabling WebRTC or setting your browser's WebRTC IP handling policy.
Key takeaways
- WebRTC leaks are not a bug: the browser must learn your real IP addresses to set up peer-to-peer calls.
- The dangerous leak is your public IP, not your local 192.168.x.x address, which modern browsers hide behind an mDNS name.
- Test with your VPN on, fix the setting for your browser, then test again — a fix you never verify is not a fix.
You connect your VPN, check your IP, and it shows the VPN's address in another country. Then you open a WebRTC leak test — and there is your real home IP, plain as day. Nothing is broken. Your browser is doing exactly what it was designed to do, and that is the problem.
What is a WebRTC leak?
A WebRTC leak is when your browser reveals your real public IP address to a website through WebRTC, even though your VPN or proxy hides it in normal web traffic. The leak happens because WebRTC gathers network addresses in a way that bypasses the proxy your web traffic uses.
WebRTC — Web Real-Time Communication — is the browser feature behind video calls, voice chat, and peer-to-peer file transfer, built into every modern browser with no plugin needed. To connect two browsers directly, each one must learn its own network addresses, and it does that by asking a STUN server what address it sees. That answer becomes an ICE candidate the page's JavaScript can read.
The key point is that no permission is needed. Collecting candidates does not require camera or microphone access, so there is no prompt and no visible sign. Any page — a video call widget, an ad network's fingerprinting script, or a leak test — can run the same few lines of JavaScript and read your addresses.
How does a WebRTC leak actually happen?
WebRTC uses ICE, Interactive Connectivity Establishment, to find a route between two browsers. ICE gathers candidates — host, server-reflexive, peer-reflexive, and relayed — and the server-reflexive candidate is the one that usually leaks your public IP.
The sequence is simple. A page creates an RTCPeerConnection and gives it a STUN server address. The browser sends a STUN binding request over UDP to that server, asking, in effect, "what public address do you see me coming from?" The STUN server answers with your public IP, and the browser stores it as a server-reflexive candidate. The page reads the candidate list and learns your real IP.
RFC 8445 defines the four candidate types. A host candidate is an address bound to a local interface. A server-reflexive candidate is the address a STUN server reports seeing — after NAT, your public IP.
A peer-reflexive candidate is discovered during connectivity checks, and a relayed candidate is an address on a TURN server that forwards traffic when no direct path works. The first two are where almost all the privacy damage happens.
The mismatch is the giveaway. Your HTTP traffic shows a proxy IP in Germany; your WebRTC candidates show your real residential IP at home. Any site running fingerprinting JavaScript can see both, and the inconsistency itself can flag your session.
What types of WebRTC leaks are there?
There are four leak types worth knowing: public IP, local IP, IPv6, and mDNS obfuscation disabled. The public IP leak is the serious one; the others matter in specific setups.
| Leak type | What is exposed | How serious | Who it affects most |
|---|---|---|---|
| Public IP leak | Your real ISP-assigned public IP | High — reveals location and identity | Anyone using a VPN or proxy for privacy |
| Local IP leak | LAN address such as 192.168.1.5 | Low — only identifies a device on your network | Mostly historical; modern browsers hide it |
| IPv6 leak | Your IPv6 address, often globally unique | High — harder to rotate than IPv4 | Users whose proxy routes IPv4 only |
| mDNS disabled | Raw local IPs instead of .local names | Medium — re-exposes the local leak | Users who changed browser defaults |
Local addresses are mostly hidden now. Chrome has masked local network IPs behind mDNS hostnames by default since version 75 in 2019, replacing them with a random name ending in .local. Firefox does the same through its media.peerconnection.ice.obfuscate_host_addresses setting, which is on by default. If you see a .local name in a test result, that is the protection working, not a leak.
IPv6 is the leak people miss. Many proxy services route IPv4 traffic only, but if your machine has an active IPv6 connection, that address appears in the ICE candidates too — and IPv6 addresses are device-specific and far harder to rotate. Always check the IPv6 section of a leak test, not just the IPv4 result.
Why is this not a bug?
WebRTC leaks are not a bug because WebRTC was designed to find the fastest direct path between two browsers, and that requires knowing real network addresses. The privacy cost is a known trade-off the IETF standard itself discusses.
RFC 8828, the IETF standard on WebRTC IP address handling, states the problem plainly: when establishing a peer-to-peer connection, WebRTC may allow a web application to learn additional information about the user compared with an application that only uses HTTP.
That is because ICE collects the endpoint's private and public addresses and hands them to the page. The document then sets out modes and recommendations for balancing privacy against media performance — it does not pretend the tension can be removed.
That is why fixes are about policy, not patches. Browsers can hide local addresses, restrict which interfaces WebRTC uses, or route WebRTC through a proxy — but each choice costs something in call quality or connectivity. The right fix depends on what you value more: perfect calls, or perfect privacy.
How do you test for a WebRTC leak?
Connect your VPN, then open a WebRTC leak test and compare the IP addresses it shows with your VPN's IP. If the test shows a public IP that is not your VPN's, you have a leak.
The simplest test takes two minutes. Connect your VPN, open our free WebRTC leak test, and wait for it to gather candidates.
Then check your VPN's IP separately — for example with our what is my IP tool in the same browser — and compare the two.
- Connect your VPN or proxy and confirm your web traffic shows its IP.
- Open a WebRTC leak test in the browser you want to check.
- Read the public IP result. If it matches your VPN's IP, or no public IP appears at all, you are fine.
- Look for a second IP version. Check the IPv6 section — an IPv6 address next to an IPv4 connection is also a leak.
- Ignore .local names. A name ending in .local is your hidden local address, and it is expected.
- Repeat after any fix. Change a setting, then run the test again. A fix you never verify is not a fix.
You can also test without a third-party site, using the developer console. Open DevTools with F12, create an RTCPeerConnection pointed at a public STUN server, and log the candidates.
Lines marked typ srflx carry the public IP the STUN server saw: if it matches your home IP while your VPN is on, WebRTC is leaking. Lines marked typ host with a .local name are your hidden local address and are expected.
How do you fix a WebRTC leak in Firefox?
In Firefox, type about:config in the address bar, search for media.peerconnection.enabled, and set it to false. That turns WebRTC off entirely, so browser video calls stop working — which is the trade-off.
If you need video calls, use the softer option instead. Firefox's media.peerconnection.ice.obfuscate_host_addresses setting is on by default and hides your local addresses. For the public IP, the reliable fix is a VPN that intercepts WebRTC traffic or blocks non-proxied UDP — check your VPN provider's documentation for WebRTC leak protection, and test it after enabling it.
Firefox holds up well on desktop in independent testing, but it has leaked internal IPs on Android, so test on every device you use, not just your main computer. Our guide to privacy addons for Firefox covers the extensions that help here, including ones that manage WebRTC policy for you.
How do you fix a WebRTC leak in Chrome, Edge, and Brave?
Chrome and Edge have no built-in setting to disable WebRTC, so use an extension that sets the browser's WebRTC IP handling policy. The extension controls the webRTCIPHandlingPolicy setting, and only one extension can control it at a time — remove or disable any other extension that manages WebRTC first.
Brave has a built-in option: open Settings, then Privacy and security, and set the WebRTC IP handling policy to Disable non-proxied UDP. That setting routes WebRTC through the proxy and blocks UDP that would bypass it, which is the strongest policy short of disabling WebRTC entirely.
On managed computers, Chrome has an enterprise policy called WebRtcIPHandling with four values. Only disable_non_proxied_udp stops the leak: it forces WebRTC traffic through the proxy over TCP and allows UDP only if the proxy supports it. The default policy uses all available interfaces and leaks.
Does a VPN or a proxy stop WebRTC leaks?
A VPN stops the leak only if it intercepts WebRTC traffic or blocks the UDP path WebRTC uses. A browser proxy usually does not, because it only carries HTTP traffic over TCP, while STUN requests travel over UDP straight past it.
This is the distinction that confuses people. A full-tunnel VPN routes all of your traffic, including UDP, through the tunnel — so a STUN request leaves through the VPN's exit and the STUN server sees the VPN's IP, not yours. A browser proxy, a split-tunnel VPN, or a VPN that only handles TCP leaves the UDP path open, and the leak remains.
When you choose a VPN, ask the provider specifically whether it protects against WebRTC leaks and how. Then verify it yourself with a leak test, because marketing pages and reality sometimes differ. If your VPN does not protect WebRTC, the browser-side fix — disabling WebRTC or setting the IP handling policy — is your safety net.
What mistakes do people make with WebRTC leaks?
The common mistakes are testing without the VPN on, fixing one browser and forgetting the others, and assuming a .local name is a leak. Each one leaves you with false confidence.
- Testing with the VPN off. A leak test without your VPN connected just shows your real IP, which tells you nothing. Always test in the configuration you actually use.
- Fixing one browser only. Chrome, Firefox, and Brave each need their own fix. A setting in Firefox does nothing for Chrome, and an extension in Chrome does nothing for your phone's browser.
- Panicking over .local names. A random hostname ending in .local is the browser hiding your local IP, not leaking it. The public IP is the number to watch.
- Forgetting IPv6. A test that only checks IPv4 can pass while your IPv6 address leaks. Check both, or disable IPv6 if your VPN does not handle it.
- Disabling WebRTC and forgetting why calls broke. If you turn WebRTC off in Firefox, remember you did it — otherwise you will spend an hour troubleshooting a video call that was never going to work.
If you use a VPN for privacy, also check the rest of your setup: our Wi-Fi security guide covers the network side.
The what is my IP tool shows what the internet sees about you right now.
The bottom line
A WebRTC leak is WebRTC working as designed: the browser must learn your real addresses to make peer-to-peer calls, and it gathers them over UDP in a way that bypasses most proxies. The danger is not the feature itself, but using a VPN while assuming it covers traffic it never touches.
Test with your VPN on, fix the setting for your browser, and test again. You can run the check right now with the free WebRTC leak test.
Frequently asked questions
What is a WebRTC leak?
A WebRTC leak is when your browser reveals your real IP address to a website through WebRTC, even though you are using a VPN or proxy. WebRTC needs your real addresses to set up peer-to-peer connections, and it gathers them in a way that can bypass your VPN.
Is a WebRTC leak dangerous?
It depends on why you use a VPN. If you use one for privacy, a leak defeats much of the point, because sites can see your real location. If you only use a VPN to reach work resources, a leak is less serious, but it still reveals information you probably did not intend to share.
Does a WebRTC leak mean my VPN is broken?
No. Most VPNs route your web traffic correctly and simply do not intercept WebRTC's UDP traffic unless they were built to. The leak is a gap between what the VPN covers and what WebRTC does, not a failure of the VPN tunnel itself.
Can a website see my IP through WebRTC without my permission?
Yes. Collecting ICE candidates does not require camera or microphone access, so there is no prompt. Any page running a few lines of JavaScript can ask the browser for its candidates and read the addresses.
What is the difference between a public IP leak and a local IP leak?
A public IP leak exposes the address your internet provider assigned you, which reveals your approximate location. A local IP leak exposes a private address such as 192.168.1.5, which only identifies a device on your own network. Modern browsers hide local addresses behind random .local names.
Does disabling WebRTC break video calls?
Yes, in that browser. WebRTC is what makes browser-based video calls, voice chat, and peer-to-peer file transfer work. If you disable it in Firefox, Google Meet and similar services stop working in Firefox until you turn it back on.
Do all browsers leak WebRTC the same way?
No. Chrome is generally the most leakage-prone, Firefox holds up well on desktop but has leaked internal addresses on Android, and Tor Browser blocks every leak vector researchers have tested. The fix also differs by browser.
Should I use a WebRTC leak test site?
Yes, as a check, but understand what it does: it runs the same JavaScript any site could run, then shows you the addresses your browser handed it. Compare the result with your VPN's IP. If they differ, you have a leak.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against RFC 8828 on WebRTC IP address handling and RFC 8445 on ICE candidate gathering.
How we write and fact-check →