WebRTC leak test

This WebRTC leak test asks your browser for its network candidates the same way a video-call app or a tracking script would, then compares the IP addresses WebRTC reveals with the IP our server sees. If they differ while you use a VPN, your real IP is leaking.

Collecting…

IP addresses

HTTP IP (seen by our server)
…
Public IPs found by WebRTC
…
Local IPs
…
mDNS (hidden local) addresses
…
IPv6 candidates
…
WebRTC supported
…
Gathering time
…

ICE candidates

TypeProtocolAddressPort
Collecting…

Supported WebRTC codecs

Collecting…

What this WebRTC leak test checks

When the page loads, it creates a WebRTC peer connection with public STUN servers (Cloudflare and Google), collects all ICE candidates your browser produces and extracts every IP address from them. It then checks three things:

  • Public IP leak: does WebRTC reveal a public IP that is different from the one this page was loaded from?
  • Local IP exposure: does WebRTC show your private network address (such as 192.168.x.x), or is it hidden behind an mDNS name ending in .local?
  • IPv6: does WebRTC expose an address of the other IP version that your VPN might not cover?

The test needs nothing from you: no camera or microphone permission is requested.

How to read your results

VerdictWhat it meansWhat to do
No WebRTC leakWebRTC shows only the same public IP that websites already see, local IPs are hiddenNothing
WebRTC leak detectedA different public IP appeared, usually your real one bypassing the VPN or proxyFix it with the steps below, then re-run the test
Other IP version exposedFor example your VPN tunnels IPv4, but WebRTC reveals your IPv6 addressEnable IPv6 leak protection in the VPN or disable IPv6
Local IP exposedYour private address is visible to the siteUpdate the browser; check extensions that disable mDNS
WebRTC disabled or no candidatesNothing can leak through WebRTCFine for privacy; browser calls will not work

The ICE candidates table shows the raw data: host candidates are your device's own addresses, srflx (server reflexive) candidates are the public addresses the STUN server saw, and relay candidates come from TURN servers.

What is WebRTC?

WebRTC (Web Real-Time Communication) is the browser technology behind video calls, voice chat, screen sharing and peer-to-peer file transfer in apps like Google Meet and Discord. To connect two browsers directly, it has to discover every network path to your device, including addresses a normal web page never needs. That discovery is available to any page through JavaScript.

Why WebRTC can leak your IP

WebRTC uses the ICE protocol: the browser lists its own network interfaces (host candidates) and sends a UDP request to a STUN server, which replies with the public address it saw (server reflexive candidate). Two situations cause leaks:

  1. The STUN request bypasses your tunnel. Browser proxies and many proxy extensions only handle HTTP(S) traffic. WebRTC's UDP packets go straight out through your normal connection, so the STUN server sees your real IP and the page can read it.
  2. Local addresses are exposed. Older browsers listed private IPs in host candidates. Since around 2019–2020, Chrome, Edge, Safari and Firefox replace them with random mDNS names such as 1f4c2e9a-….local unless the page has camera or microphone permission.

A full-system VPN that routes all traffic through the tunnel normally prevents the first problem; a misconfigured VPN or a split-tunnel setup does not.

How to prevent WebRTC leaks

Firefox

Type about:config in the address bar, search for media.peerconnection.enabled and set it to false. This disables WebRTC entirely.

Chrome and Edge

There is no built-in switch. Use an extension that restricts WebRTC's IP handling policy, for example Google's official "WebRTC Network Limiter", "WebRTC Leak Prevent" or "WebRTC Control". The setting "use only the default public interface" or "disable non-proxied UDP" stops leaks while keeping many calls working.

Brave

Open Settings → Privacy and security → WebRTC IP handling policy and choose "Disable non-proxied UDP" (strictest) or "Default public interface only".

Safari

Safari only exposes local candidates to pages with camera or microphone access and hides them with mDNS otherwise. Leaks of the public IP still depend on your VPN routing all traffic.

uBlock Origin

Where the full uBlock Origin is available (for example in Firefox), Settings → Privacy → "Prevent WebRTC from leaking local IP addresses" restricts WebRTC.

Your VPN

Use the VPN's desktop app rather than a browser-only proxy extension, enable its leak protection or kill switch, and make sure it either tunnels IPv6 or blocks it.

Does a VPN protect against WebRTC leaks?

A properly configured system-wide VPN does: all UDP traffic, including STUN, goes through the tunnel, so WebRTC only sees the VPN's address. Browser VPN extensions are usually proxies, and that is where most WebRTC leaks happen. Always re-run this test after connecting, and check the IP address page to confirm that the IP and location belong to the VPN.

Should you disable WebRTC?

Only if you do not need it. Disabling WebRTC breaks video and voice calls in the browser, screen sharing and some multiplayer games. Restricting it with an IP handling policy is usually the better trade-off. Note that disabling WebRTC also slightly changes your browser fingerprint: a browser without WebRTC is rarer than one with it.

WebRTC on mobile

On iPhone all browsers use WebKit, which hides local addresses behind mDNS. On Android, Chrome behaves like desktop Chrome. On both, use a system-wide VPN app rather than a per-app proxy if you need to hide your IP from WebRTC. For a broader look at what else identifies you, see how to prevent browser fingerprinting.

Frequently asked questions

What is a WebRTC leak?

A WebRTC leak happens when a website uses the WebRTC API to discover an IP address you meant to hide, typically your real public IP while you are connected through a VPN or proxy, or your private network address.

Does a VPN stop WebRTC leaks?

A system-wide VPN that tunnels all traffic usually does. Browser VPN extensions often only proxy web requests, so WebRTC's UDP traffic bypasses them and leaks your real IP. Test with the VPN connected to be sure.

How do I disable WebRTC in Chrome?

Chrome has no setting to turn WebRTC off. Install an extension that changes the WebRTC IP handling policy, such as WebRTC Network Limiter, WebRTC Leak Prevent or WebRTC Control, and choose the option that blocks non-proxied UDP.

How do I disable WebRTC in Firefox?

Open about:config, accept the warning, search for media.peerconnection.enabled and set it to false. Restart the test to confirm that WebRTC is disabled.

Is it safe to disable WebRTC?

Yes, it does not harm security. It only breaks features that need real-time connections: video and voice calls, screen sharing and some games in the browser.

Why does the test show a .local address?

That is an mDNS hostname. Modern browsers replace your private IP with a random name ending in .local so websites cannot see your local network address. It is a privacy feature, not a leak.

Can WebRTC leak my IPv6 address?

Yes. If your VPN only tunnels IPv4, WebRTC may reveal your real IPv6 address. Choose a VPN that supports IPv6 or blocks it, or disable IPv6 on your network adapter.

Sources and further reading