WebRTC leaks explained: what they are, how to test for one and how to fix it

A WebRTC leak happens when your browser reveals your real IP address to a website even though you're using a VPN. It's not a virus and nobody is hacking you: it's a side effect of the technology that makes video calls work in the browser. The good news is that it's easy to test for and, in most cases, easy to fix. Here's what's going on, how to check your own browser, and what to change if it leaks.

Diagram: normal traffic goes through the VPN tunnel and shows the VPN's address, while a WebRTC STUN request slips outside the tunnel and reveals your real IP address; fixes include VPN leak protection, covering IPv6, limiting WebRTC in the browser and testing again
Tap the image to enlarge

What WebRTC is, and what a "leak" means

WebRTC (Web Real-Time Communication) is built into Chrome, Edge, Firefox, Safari, Brave and most other browsers. It lets websites run video calls, voice chat, screen sharing and file transfers directly between two people, without a plug-in.

To connect two people directly, the browser has to work out how it can be reached. It gathers a list of possible addresses, called ICE candidates:

  • Your local address on your home or office network, such as 192.168.1.23.
  • Your public address, the one the internet sees. The browser finds it by asking a STUN server, a simple service that replies "this is the address your request came from."
  • A relay address, used when a direct connection isn't possible.

A website can start this process with a few lines of JavaScript, without showing you anything. A leak happens when that STUN request travels outside your VPN tunnel, or reaches the internet over a connection the VPN doesn't cover (often IPv6). The website then learns your real, ISP-assigned public IP address, which is exactly what the VPN was supposed to hide.

Why it matters (and when it doesn't)

Your public IP address reveals your internet provider and your rough location, usually the city or region. If you use a VPN for privacy, to avoid tracking, or to appear in another country, a WebRTC leak quietly undoes that.

Without a VPN, WebRTC doesn't reveal anything new: every website already sees your public IP as part of a normal visit. You can see yours on our What is my IP page.

Local addresses are less of a worry. Since Chrome 76 in 2019, Chrome and other Chromium-based browsers hide your local address behind a random name ending in .local (an mDNS hostname), unless you've given the site permission to use your camera or microphone. So if a test shows something like 1f4712db-….local, that's the browser protecting you, not a leak. Even a raw 192.168.x.x or 10.x.x.x address is the same for millions of home networks, so it identifies you far less than your public IP. It can still add to a browser fingerprint, though.

How to test for a WebRTC leak

  1. Turn your VPN off and open What is my IP. Write down the public IPv4 address, and the IPv6 address if you have one (why you may have both). That's your real address.
  2. Connect your VPN, then reload the page. The address should now belong to the VPN, usually in the country you chose.
  3. Run our VPN leak test in the same browser. Look at every public address it finds, including the ones discovered through WebRTC.
  4. Compare. If any public address in the results matches the real address you wrote down, you have a leak. Only VPN addresses, .local names or private addresses like 192.168.x.x means you're fine.
  5. Repeat in each browser you use. Settings and extensions differ, so one browser can leak while another doesn't.

How to stop WebRTC leaks

  1. Use your VPN's desktop or mobile app, not just a browser extension. A full VPN app routes all of your device's traffic through the tunnel, including the STUN requests WebRTC makes. Many VPN browser extensions only cover normal web traffic.
  2. Turn on the app's leak protection or kill switch. Most good VPNs have a setting that blocks any traffic trying to leave outside the tunnel. Also make sure the VPN either tunnels IPv6 or blocks it. An IPv6 connection the VPN ignores is a common source of leaks.
  3. Firefox: type about:config in the address bar, accept the warning, search for media.peerconnection.enabled and set it to false. This switches WebRTC off completely, so video calls in the browser stop working until you turn it back on.
  4. Brave: open Settings → Privacy and security and find WebRTC IP handling policy. Choose Disable non-proxied UDP for the strongest protection, or Default public interface only to keep calls working while hiding local addresses.
  5. Chrome and Edge: there's no built-in switch to turn WebRTC off. Rely on your VPN app's leak protection, or install an extension that limits WebRTC, such as WebRTC Network Limiter, and set it to use only the VPN's public address.
  6. Safari: current versions don't offer a simple switch, so use a VPN app with leak protection and test again.
  7. Test again with the leak test after every change.

If your VPN still leaks after all this, it's probably time for a better one. Look for a provider that publishes a no-logs policy, protects against IPv6 and WebRTC leaks, and has an independent audit.

Disclosure: some links on this page are affiliate links. If you buy through them, CheckIfSiteDown may earn a commission at no extra cost to you. It never affects our status results, and we only recommend services with a strong reputation. Learn more.

VPNs with built-in leak protection

Best all-rounder

A large server network in dozens of countries, consistently fast speeds and an independently audited no-logs policy.

  • Servers in many countries to get around regional blocks
  • Fast, stable connections
  • Independently audited no-logs policy
Get NordVPN →
Best for privacy

From the Swiss makers of Proton Mail: open-source apps, a strong privacy record, and a free plan to try it first.

  • Based in privacy-friendly Switzerland
  • Open-source, audited apps
  • Free plan available
Get Proton VPN →

Prices and features change — check the provider's site for current offers. Check its refund terms before you buy.

For developers and site owners

  • WebRTC apps need ICE candidates to work. If users disable WebRTC or force proxied UDP, direct connections fail. Run a TURN relay server so calls still connect over TCP or TLS when UDP is blocked.
  • Expect .local host candidates. Chromium browsers replace private IPs with mDNS hostnames unless the page has camera or microphone permission. Your signalling and connection code should handle them, not assume a raw IP.
  • Don't use WebRTC to collect visitors' IP addresses. Gathering addresses through STUN without a call taking place is a known fingerprinting technique. Browsers keep closing that gap, and in many places it can create legal problems under privacy laws such as the GDPR.
  • Companies can enforce a policy. Chromium browsers support a managed WebRTC IP-handling policy, so IT teams can limit what WebRTC exposes on work devices without relying on extensions.

WebRTC leaks vs other VPN leaks

LeakWhat gets exposedMain fix
WebRTC leakYour real public IP address, found by the browser through a STUN requestVPN app with leak protection, or limit WebRTC in the browser
DNS leakThe names of the sites you visit, sent to your provider's DNS servers instead of the VPN'sTurn on the VPN's own DNS and DNS leak protection
IPv6 leakYour IPv6 address, when the VPN only tunnels IPv4Use a VPN that tunnels or blocks IPv6
Kill-switch failureAll traffic, for the moments the VPN reconnectsTurn on the kill switch

Run our VPN leak test whenever you change VPN settings, servers or browsers. If a site blocks you even with a working VPN, see when a VPN helps and when it won't.

Common questions

How do I know if my browser leaks?

With your VPN on, compare your real IP from What is my IP (checked with the VPN off) with the results of our VPN leak test. If your real address shows up, you have a leak.

How do I fix it?

Use your VPN's full app with leak protection rather than a browser extension alone, make sure it covers IPv6, and limit WebRTC in Firefox or Brave if you don't need calls in the browser.

The test shows a .local name or a 192.168.x.x address. Is that a leak?

No. Those are private addresses inside your own network, and they don't reveal who or where you are.