Why WebRTC shows another IP when your proxy is on

WebRTC can tell a web page your real address while your proxy carries the page. How it happens, what host, srflx and relay mean, and which settings stop it.

Popo
On this page

Your proxy is on and every IP lookup shows its address. Then a WebRTC test lists another one, perhaps the one your provider gave you. It isn't a fault in the test. WebRTC, the browser feature behind video calls, looks for direct paths between two computers, and to do that it has to find out your addresses.

How a page gets it

  1. 1The page asksA few lines of script; no permission needed
  2. 2The browser asks a STUN serverOver UDP: “what address do I come from?”
  3. 3The server answersWith the address that packet came from
  4. 4The page reads itAs a candidate for a connection

A proxy that carries only web traffic never sees the second step.

The STUN server doesn't do anything special. It reports where the packet came from, as any server could.

A web page travels over TCP, or over QUIC if nothing is in the way. WebRTC prefers UDP. A proxy set in the browser or the system for web traffic usually doesn't carry UDP at all, so those packets leave directly, with your real address. A VPN that takes over the whole system's traffic normally does carry it.

A page doesn't need your permission for this. Access to the camera and microphone requires it; gathering addresses doesn't.

host, srflx and relay

Each address found is called a candidate, and has a type:

host: your own network interface

udp 2113937151 0c7d1f3e-….local 54321 typ host

srflx: your address as a STUN server sees it

udp 1677729535 203.0.113.24 54321 typ srflx raddr 0.0.0.0 rport 0

relay: a server that forwards for you

udp 33562367 198.51.100.7 49152 typ relay raddr 203.0.113.24 rport 54321
Candidate format, with documentation addresses. The relay line appears only if the page has provided a TURN server.
  • host comes from your own network interface. Browsers now normally replace the private address with a random name ending in .local. With IPv6, though, the address of an interface is often public.
  • srflx (server reflexive) is your address as seen from outside. This is the one that reveals you.
  • relay belongs to a forwarding server, not to you.

Public and private IPs shows how to list them in your own browser's console.

Read your result

The check compares the public addresses WebRTC finds with the one your web traffic comes from:

  • Public addresses match the web exit: no difference was found for that kind of address.
  • Additional public IP found: a page can see a public address your proxy was supposed to hide.
  • Local addresses are visible to this page: a private address such as 192.168.x.x can be read. It reveals a little about your network, but isn't your public address.
  • No public address detected: gathering finished and none turned up. It doesn't mean that WebRTC is off.

It compares IPv4 with IPv4 and IPv6 with IPv6. If your web traffic used IPv4 and WebRTC also found an IPv6 address, that address is listed without a verdict. If you have IPv6 at home and your proxy is IPv4 only, look at that line first. The check contacts Google's STUN server, which sees your address too.

What each setting changes

The IETF described four ways for browsers to handle this in RFC 8828, from most open to most private. Chrome has a policy for each. We ran Chrome 158 with every one and recorded what a page could read:

Chrome policyLocal addressPublic address over UDP
defaultHidden behind a .local nameShown
default_public_and_private_interfacesShownShown
default_public_interface_onlyNot givenShown
disable_non_proxied_udpNot givenNot given
Chrome 158 on macOS, run without a visible window, one network interface with IPv4, 30 November 2026. Only the last policy withheld the public address.

Two things stand out. Hiding the local address, the default, does nothing for the public one. And default_public_interface_only, despite its name, still gives the public address: it prevents WebRTC from using other interfaces, which helps if your VPN is the default route and doesn't if you use a browser proxy.

Fix it

Use a VPN that covers the whole system, including UDP and IPv6, instead of a proxy for web traffic only. This solves the cause.

In Firefox, open about:config. Set media.peerconnection.ice.proxy_only_if_behind_proxy to true to keep WebRTC within the proxy, or media.peerconnection.enabled to false to turn it off.

In Chrome and Edge there's no switch in the settings. Extensions can set the policy through the privacy API, and the one to choose is disable_non_proxied_udp. Pick an extension from a source you trust, since it can see a lot.

Give it up where you don't need it. Use a separate browser or profile for video calls, and turn WebRTC off in the one you use with the proxy.

Each of these has a price: blocking UDP makes calls worse or stops them. That's why browsers don't do it by default.

A private window isn't a fix. We compared, and it gave the same candidates.

Afterward run the check again, then the rest of the leak test. DNS and IPv6 can leak on their own.

More in Privacy & leaks

DNS and WebRTC leaks, fingerprints and what sites see

All 10 articles