WebRTC leak: how it exposes your real IP and how to stop it

You turned on a VPN or a proxy and opened Whoer. The address on the first screen isn't yours, as intended. But the WebRTC row shows a different address in red, and IP addresses different appears under the score. Quite often that's your real home address.

Whoer first screen with a red address in the WebRTC row, different from the site address

This is the most serious of Whoer's checks, so it's worth knowing where the second address comes from and how to stop the leak.

What WebRTC is

WebRTC is the browser technology for calls and video chat right on a website. To connect two people directly, the browser finds out its own addresses: it asks a special STUN server which address the request came from. That request goes over UDP, separately from normal pages.

The trouble is that many proxies and VPN extensions only carry normal page requests. UDP goes around them, directly. The STUN server sees your real address, and the browser hands it to any site that asks.

What Whoer checks

Whoer runs WebRTC with its own STUN server and looks at which public addresses the browser reports. Local addresses like 192.168.1.5 and .local names don't count, because they give nothing away.

  • An address of the same kind as the site sees, but different. For example, the site sees an IPv4 address of one provider, and WebRTC reports an IPv4 address of another. That's a leak.
  • An address of the other kind. For example, the site sees IPv6, and WebRTC reports IPv4. One connection often has both, so Whoer compares countries: another country means a leak. If the country is unknown, there's no conclusion.
  • Whoer's node itself received UDP from another address. That's a leak, no question.

If there's a leak, the WebRTC row shows the leaked address in red, the IP address card shows it too, and the score loses up to 40%. If the browser reported the same address or nothing at all, the row is green. Whoer only calls it clean when its STUN server actually answered the page.

Why websites care

This isn't an indirect hint, it's your address. It shows your provider, your city and sometimes your street. The site doesn't have to guess anything: yes, there's a VPN, and here's the address behind it. That's why fraud prevention systems check WebRTC.

Where the leak comes from

A proxy in the browser

HTTP proxies and most SOCKS proxies set in the browser don't carry UDP. WebRTC goes around them.

A VPN extension instead of a VPN

A browser extension called VPN usually works as a proxy. WebRTC calls go around it.

A VPN without IPv6

If the VPN only carries IPv4 and your provider gives you IPv6, the browser reports your home IPv6 address. The site sees the VPN address in one country and IPv6 in another.

Split tunneling

If the browser is excluded from the tunnel in the VPN settings, all of its traffic goes direct.

How to fix it

Turn on a system-wide VPN

A VPN app on your computer or phone, not an extension. Make sure it supports or blocks IPv6, that its kill switch is on, and that the browser isn't excluded from the tunnel.

Limit WebRTC in the browser

  • Chrome and Edge. Install Google's WebRTC Network Limiter extension and pick the mode where WebRTC only goes through the proxy.
  • Brave. Its privacy settings have a WebRTC policy. Choose Disable non-proxied UDP.
  • Opera. Its privacy settings have the same WebRTC setting. Choose the option without non-proxied UDP.
  • Firefox. In about:config, turn on media.peerconnection.ice.proxy_only_if_behind_proxy. With a proxy set, WebRTC then only goes through it.

You can turn WebRTC off entirely, for example with media.peerconnection.enabled in Firefox. But then calls in the browser stop working, and a browser without WebRTC is unusual in itself.

What doesn't help

  • Incognito mode and clearing cookies. WebRTC works there all the same.
  • Changing the User-Agent. The leak travels over the network, not through the browser name.
  • Another server of the same VPN extension. While UDP goes around it, the address leaks from any server.

How to check the result

Open Whoer again. If it worked, the WebRTC row is green: it shows the same address as the site sees, or says the address is hidden.

Whoer first screen with a green WebRTC row

All WebRTC candidates and the connection type are on the Extended version tab, in the WebRTC card.

Check your browser on Whoer

Summary

  • WebRTC asks a STUN server for its address over UDP, and many proxies and VPN extensions don't carry that request.
  • Whoer compares WebRTC addresses with the site address, and compares countries between IPv4 and IPv6.
  • A leak shows the site your real address, so it weighs more than any other check.
  • The fix is a system-wide VPN that handles IPv6, plus a WebRTC limit in the browser.

This website uses cookies to enhance your experience.