Tutorials Privacy

WebRTC leaks: the browser feature that can reveal your real IP

Is your browser handing out your real IP behind the scenes?

Run this scan on your device

The short version

Your browser has a built-in tool for video calls and voice chat called WebRTC. To connect two people directly, it sometimes shares your device's real network address with the website, even if you're using a VPN to hide it. That's a WebRTC leak. It can quietly hand out the very address you were trying to keep private.

What's actually happening

Think of a VPN as a mail-forwarding service. You send letters through them, so the return address on the envelope is their office, not your home. WebRTC is like a helpful assistant who, when setting up a phone call, blurts out your actual home phone number so the other person can call you back directly. The forwarding service is still working, but the assistant just said your real number out loud.

WebRTC does this on purpose: direct connections make video calls faster and clearer. The trouble is that a web page can trigger this "here's how to reach me directly" step in the background, without a call ever happening, and read the addresses your browser offers up.

Why it matters to you

  • A website can learn your real public address even while your VPN is on, revealing roughly where you are and who your internet provider is.
  • It can also expose your device's private address on your home network (less sensitive, but still a detail you didn't mean to share).
  • It's one of the most common ways a VPN's protection gets undone without you noticing.

Honest limits: a WebRTC leak reveals your IP address. It does not read your files, passwords, or the contents of your calls. And if you don't use a VPN, WebRTC isn't exposing anything your browsing didn't already show.

How to fix it

The fix depends on your browser. Pick yours.

Firefox (has a true off switch)

  1. In the address bar, type about:config and press Enter.
  2. Click Accept the Risk and Continue.
  3. In the search box, type media.peerconnection.enabled.
  4. Click the toggle so its value becomes false.

This turns WebRTC off completely. Browser-based video calls (like Google Meet or Discord in a tab) will stop working until you set it back to true.

Brave (built-in menu setting)

  1. Type brave://settings/privacy in the address bar and press Enter.
  2. Scroll to WebRTC IP handling policy.
  3. Choose Disable Non-Proxied UDP for the strongest protection, or Default Public Interface Only if you still want video calls to work.

Chrome and Edge (need a helper)

These don't have a simple off switch. You have two reliable options:

  • Use a VPN that routes everything (a "full tunnel"). This is the most dependable fix, because there's no real outside address for WebRTC to leak.
  • Add a trusted extension. In uBlock Origin, open its Settings (dashboard) → Settings tab → tick Prevent WebRTC from leaking local IP addresses. Or install WebRTC Network Limiter (published by Google) from the extension store.

Phones

  • Android, Firefox: same about:config steps as desktop.
  • Android, Brave: open Settings → Brave Shields & privacy and set the WebRTC option there.
  • iPhone/iPad: Safari and other iOS browsers don't expose a WebRTC switch. The practical fix is a full-tunnel VPN.

How to check it worked

Turn on your VPN, then run the WebRTC leak test on this site. You should see your VPN's address (or no public address at all), not your home internet address. If your real address no longer appears, you're protected.

If your result was already good

If this test passed, your browser isn't leaking, you don't need to change a thing. Many modern browsers and VPN apps already handle this. Just remember that browser updates occasionally reset settings, so if you ever switch browsers or do a major update, it's worth a quick re-test.

Want to go further?

The Advanced version explains ICE candidates, STUN servers, the exact Firefox and Chromium policy values, and why "mDNS obfuscation" already hides your local IP in most browsers.

whoamionline.com Free privacy & network diagnostics Check your own connection →