What Is a WebRTC Leak and How to Stop Your VPN Leaking Your IP

Learn how WebRTC can reveal your real IP address behind a VPN, what ICE candidates and STUN are, how to test for a leak and how to fix it in each browser.

Updated September 29, 2026 5 min read

Use the free WebRTC Leak TestCheck whether WebRTC exposes your real or local IP while using a VPN

You connect your VPN, check your IP address, and see the VPN's server location. Everything looks right. But websites have a second way to ask your browser for network addresses, built into the technology that powers browser video calls. On some setups that route bypasses the VPN and hands the site your real public address.

This guide explains how WebRTC discovers addresses, what exactly can leak and when, how to run a leak test and read the result, and the practical fixes for VPN apps, proxy extensions and each major browser.

Why browsers reveal addresses at all

WebRTC (Web Real-Time Communication) lets two browsers exchange audio, video and data directly, without routing everything through a server. To connect directly, each browser needs to know which addresses the other can reach it on. It gathers these as ICE candidates:

Candidate type What it contains
Host An address of one of your local network interfaces
Server reflexive (srflx) Your public address, as seen by a STUN server
Peer reflexive (prflx) An address discovered during the connection itself
Relay An address on a TURN relay server, used when direct connection fails

A STUN server is a simple service that answers "this is the address your request came from". Your browser sends a request, usually over UDP, and the reply is your public address.

Any web page can start this process with a few lines of JavaScript and read the candidates, without showing a camera or microphone prompt. That is by design: the addresses are needed to set up the connection.

When it becomes a leak

A VPN is supposed to send all your traffic through an encrypted tunnel, so every site sees the VPN server's address. A leak happens when the STUN request does not go through the tunnel:

  • Browser proxy extensions often only proxy normal web requests. WebRTC's UDP traffic goes straight out, revealing your real public IP.
  • Split tunnelling can exclude the browser or certain traffic from the VPN.
  • IPv6 may bypass a VPN that only tunnels IPv4, so an IPv6 candidate shows your ISP's address.
  • Misconfigured VPNs may not route or block UDP to STUN servers properly.

Local addresses are a smaller concern. Modern Chrome, Edge, Firefox and Safari replace local IPs in host candidates with random .local names (mDNS), so sites normally cannot read your private address. If a raw private address does appear, it does not identify you, but it adds to browser fingerprinting.

Run a WebRTC leak test

The WebRTC Leak Test gathers candidates exactly as a video-call site would and compares them with the address normal web requests come from.

  1. Connect your VPN if you want to test it.
  2. Press Start WebRTC leak test. The browser gathers ICE candidates using Google's public STUN server for up to 5 seconds.
  3. Read the verdict: Possible leak, No leak detected or No public IP exposed via WebRTC.
  4. Compare IP seen by websites (ipify) with Public IP exposed by WebRTC. If WebRTC shows a public address that differs from what websites see, and it belongs to your ISP, your real address is leaking.
  5. Check the table, which lists each Address, Candidate type, Protocol and its Meaning, including whether local addresses are hidden behind .local names.
  6. Change a setting and press Run again.

To confirm who owns an exposed address, paste it into the IP Address Lookup. If it shows your home ISP while the VPN is on, that is a genuine leak.

Interpreting IPv6 results

Devices often have several IPv6 addresses at once, including rotating privacy addresses. Compare the first four groups (the network prefix) rather than the whole address. The IPv6 Test shows whether your connection uses IPv6 at all.

How to fix a WebRTC leak

Start with the VPN

  1. Use the VPN's own app rather than a browser proxy extension. System-level VPN apps route all traffic, including UDP.
  2. Turn on leak protection or a "kill switch" in the VPN settings, and check whether the provider offers IPv6 leak protection or disables IPv6 while connected.
  3. Review split tunnelling and make sure your browser is inside the tunnel.

Test again after each change. For most people with a reputable VPN app, the result is already "no leak detected".

Firefox

Firefox can disable WebRTC completely. Type about:config in the address bar, accept the warning, search for media.peerconnection.enabled and set it to false. This breaks browser-based video calls in Firefox, so consider using a separate browser or profile for calls.

Chrome and Edge

Chromium browsers have no simple switch to turn WebRTC off. Options are an extension that limits WebRTC's IP handling (for example, to use only the proxied or default route), or enterprise policies in managed environments. Choose extensions carefully, as they need broad permissions.

Safari

Safari has restricted local address exposure for WebRTC by default for some time. Leaks in Safari typically come down to the VPN configuration rather than the browser.

Brave and privacy-focused browsers

Several privacy-oriented browsers include a WebRTC IP handling policy in their privacy settings. Pick the option that prevents non-proxied UDP.

Other leaks to check at the same time

  • Your visible IP: What Is My IP should show the VPN server's address and location, for both IPv4 and IPv6.
  • DNS leaks: if DNS queries go to your ISP's resolver instead of the VPN's, the ISP still sees which domains you visit. Many VPN apps include DNS leak protection; dedicated DNS leak test sites can confirm it.
  • Time zone mismatch: websites can compare your device time zone with your IP's location. That is not a leak of your IP, but it reveals VPN use.

Frequently asked questions

What is a WebRTC leak?

It is when a website learns your real public IP through WebRTC's STUN requests, even though your normal traffic goes through a VPN or proxy. It mainly affects proxy extensions and misconfigured VPNs.

Is it a problem if the test shows my local IP?

A private address such as 192.168.1.20 does not identify you, but it adds to fingerprinting. Current major browsers hide it behind an mDNS .local name by default.

Will disabling WebRTC break websites?

It breaks browser-based video and voice calls, screen sharing and some file-transfer and gaming sites. Most other websites are unaffected.

Does using a VPN app always prevent WebRTC leaks?

Most reputable VPN apps route all traffic including UDP, so WebRTC sees the VPN address. Always test, especially for IPv6 and after changing settings.

What does this test send, and where?

A STUN request goes to Google's STUN server and an IP request to ipify. The candidate list is analysed in your browser and not sent anywhere else.

Try it now: WebRTC Leak Test

Loading tool…