Home / Guides / Privacy & Security

What Is a WebRTC Leak? How to Test and Prevent It

WebRTC can expose your real IP around a proxy. Learn how the leak happens, how to test for it, and how to protect yourself in Chrome, Firefox and Safari.

Privacy & Security2026-12-051 min read

WebRTC is the real-time communication technology built into browsers — it powers in-browser video meetings and voice calls. But it has a side effect: with some network setups, a web page can use WebRTC to learn your real IP address, bypassing your proxy.

How the leak happens

To set up peer-to-peer connections, WebRTC asks a STUN server “what is my public address?”. That request uses UDP, while many proxies only handle TCP (for example, only the browser's HTTP traffic). The result: the page sees the proxy's IP, WebRTC sees your real one, and comparing the two exposes your actual address.

How to test

Open the browser fingerprint module on the PurityIP homepage and look at the “WebRTC” row:

  • No public IP exposed: the browser didn't return any public address through WebRTC — the safest result;
  • No leak: WebRTC returned the same address as your exit IP — nothing to worry about;
  • Leaks: WebRTC returned a public IP different from your exit — you have a leak.

How to protect yourself

Chrome / Edge

Chrome has no built-in switch to turn WebRTC off. Install a WebRTC control extension from the official store (such as Google's own “WebRTC Network Limiter”) and set the policy to use only the proxy's public interface.

Firefox

Type about:config in the address bar and set media.peerconnection.enabled to false to disable WebRTC completely. To keep video calls working, set media.peerconnection.ice.default_address_only to true instead.

Safari

Safari restricts WebRTC address exposure fairly strictly by default, so extra settings are usually unnecessary.

Fix it at the network level

A system-wide proxy or VPN that sends all TCP and UDP traffic through the same exit usually eliminates the mismatch between WebRTC and web traffic at the source.

⚠️ Disabling WebRTC breaks some in-browser video meetings and calls. You can turn it back on temporarily when you need them.

See your network clearly in one minute

Free, no sign-up, no scan records stored.

Check my IP →