WebRTC Leak Test — Your Proxy Moves HTTP, Not UDP
A peer connection opens a socket of its own, asks a STUN server what the world sees, and reports the answer to whichever page asked. Nothing in that sequence consults the proxy settings you spent an hour on.
Ten STUN lookups from this machine returned one address from ten different ports. The HTTP exit, measured in the same minute, was in another city.
The test below gathers the candidates your browser offers, sorts them by type, and puts the STUN address beside the address your HTTP traffic leaves from. Two addresses that disagree is the whole finding.
Five of eight STUN servers answered, all naming 14.155.233.50 from ten distinct ports. Twenty-three SOCKS5 endpoints moved HTTP and left that address untouched.
probed
Candidate and exit probe
Three probes. One HTTP exit, one STUN gather, one comparison of the two.
Not run yet.
| Probe | Source | Address | Detail |
|---|
Run the test to produce a copyable result.
The gather asks three public STUN servers in parallel and closes each connection after four seconds. The HTTP probe calls one address echo service. Host candidates are shown exactly as the browser reports them, including the random label it substitutes for a private address. No camera or microphone is requested. This page stores no address and writes no result to a server.
1. One connection hands a page three kinds of address
Collecting candidates is not a misconfiguration. A browser that wants to receive media must tell the other side where it might be reachable, and the other side may sit anywhere. So the browser offers several answers at once and lets the negotiation pick.
Each answer carries a type, and the type is what decides how much it gives away.
| Type | Where it comes from | What it reveals | Seen here |
|---|---|---|---|
| host | a local interface, read by the browser | your LAN address, unless the browser substitutes a label | 1 per connection, label only |
| srflx | a STUN server you name | the public address your UDP path leaves from | 1 per isolated connection |
| relay | a TURN server you rent | an address on that server, never yours | 0, none configured |
Counts come from two rounds of eight isolated peer connections, which is where the ten server-reflexive answers in the next section come from. A connection built with no STUN server at all returned exactly one candidate, of type host, and no srflx.
The third row is where most advice goes wrong. A relay candidate exists only if the browser has been given a TURN server with working credentials. Ask for relay-only transport without one and the browser does not fall back, it returns nothing: both rounds produced zero candidates. A product that offers to force relay while shipping no TURN server has removed every path, which stops the leak by stopping the call.
That leaves two types that matter: the host candidate, which people fear because a private address tells a stranger which router you sit behind, and the srflx candidate, which actually identifies you.
2. Ten lookups, one address, ten ports
Eight public STUN servers were queried one at a time, twice through, from one browser profile. Five answered in both rounds; three were silent in both, so the silence was a property of the server, not of the network at that moment.
| Server | Round 1 | Round 2 | Address returned |
|---|---|---|---|
| stun.cloudflare.com:3478 | 192 ms | 168 ms | 14.155.233.50 |
| global.stun.twilio.com:3478 | 182 ms | 177 ms | 14.155.233.50 |
| stun.nextcloud.com:443 | 205 ms | 194 ms | 14.155.233.50 |
| stun.l.google.com:19302 | 656 ms | 173 ms | 14.155.233.50 |
| stun.voip.blackberry.com:3478 | 370 ms | 471 ms | 14.155.233.50 |
| stun.l.google.com:19305 | no answer | no answer | — |
| stun.sipgate.net:3478 | no answer | no answer | — |
| stun.miwifi.com:3478 | no answer | no answer | — |
The timing is the interval from opening the connection to the first server-reflexive candidate, not a round-trip measurement. The host candidate arrived within 2 to 7 ms in every one of the sixteen runs.
Four unrelated operators, in four different networks, described the same machine the same way. That is the first thing the table says: switching to a different STUN server does not produce a new fact about you, it produces the same fact. A test that queries one server and reports one address has not missed anything important.
The second thing is in the ports. Ten server-reflexive candidates carried ten different source ports and one address: 60285, 61260, 63199, 56869, 62776, 58165, 62029, 52001, 49594, 58159. The address is the identifier. The port is redrawn on every attempt and is worth nothing to anyone trying to recognise you, which is also why a blocklist keyed on address and port catches almost nothing.
3. The camera permission decides whether your LAN address is visible
Chrome has replaced private host candidates with a random label for years, and most writing stops there. The replacement is conditional, and the condition is not a privacy setting. It is whether the page currently holds a camera or microphone permission.
Two launches of the same browser, same profile flags, same page. The only difference was whether a capture device could be opened.
| Launch | Capture request | Host candidates | What a page reads |
|---|---|---|---|
| no media flags | rejected, no device | 1: 05d3cee9-3c70-4b3c-9bae-684df1f2d476.local:64799 | a label that identifies nothing |
| fake capture device | granted, audio and video live | 2: 192.168.1.147:52338, 192.168.1.147:9 | the address your router assigned |
The second launch also produced a host candidate on port 9, the discard port, which is the browser testing a TCP path beside UDP. Both candidates carried the same private address.
The label itself is worth one more measurement, because a stable label would be a tracking identifier even without an address. It is not stable. Eight page loads produced eight different labels, and reloading the same origin produced a new one each time. Within a single document the label held still across seven peer connections, so it is scoped to the document, not to the browser or the site.
The practical reading is narrow. If the host candidate on your screen is a private address, this profile has granted a capture permission to something, and any page can read your LAN address until the grant is revoked. If it is a label, the only address a peer connection gives up is the public one.
4. Your proxy moves HTTP and leaves UDP where it is
Before any proxy was involved, this machine already had two exits. An HTTP request came back as 177.201.235.115, announced as Hong Kong. A STUN lookup, seconds later, came back as 14.155.233.50, announced as Shenzhen. Same browser, same machine, same minute, two networks roughly fifteen hundred kilometres apart.
Then twenty-three distinct SOCKS5 endpoints, taken from a public list and checked for liveness first, were driven one at a time by a browser launched against each of them.
| Route | HTTP exit | STUN address | Agreement |
|---|---|---|---|
| direct | 177.201.235.115 HK | 14.155.233.50 CN | two networks |
| SOCKS5, Moscow | 212.48.150.38 RU | 14.155.233.50 CN | two networks |
| SOCKS5, Beverly Hills | 199.102.107.145 US | 14.155.233.50 CN | two networks |
| SOCKS5, Pensacola | 174.75.211.193 US | 14.155.233.50 CN | two networks |
Country codes come from one lookup service applied to every address in the table. Free endpoints are not reliably reachable: of the twenty-three tried, three completed the HTTP read within the timeout, and those are the three proxy rows. Every session that returned a candidate list, reachable or not, reported 14.155.233.50.
A proxy is a TCP arrangement. The browser opens a connection to the proxy and asks it to open a connection onward, and every HTTP request rides inside that. STUN does not use TCP. The browser sends a short UDP packet to the server and waits for a reply, and no part of a SOCKS5 handshake gives it a way to hand that packet to the proxy.
The Moscow row makes the asymmetry concrete. The proxy took 2,653 ms to return one HTTP request while the STUN answer arrived in 578 ms, from the machine's own network, untouched. The slow path moved three thousand kilometres and the fast path never left the country.
Frequently asked
Why does the test show two different addresses?
Because two different paths left the machine. The HTTP request used TCP through whatever you configured; the STUN lookup used UDP directly. On the machine behind this page the HTTP exit was 177.201.235.115 in Hong Kong while the STUN answer was 14.155.233.50 in Shenzhen, measured seconds apart. A proxy setting moves the first and leaves the second alone.
Is a .local host candidate a leak?
Not of your LAN address, but only while the page holds no camera or microphone permission. Chrome replaces the private address with a random label such as 05d3cee9-3c70-4b3c-9bae-684df1f2d476.local, and that label changed on all eight page loads recorded. Grant a capture permission and the same browser offered 192.168.1.147 instead, which is the address your router assigned.
Does a SOCKS5 proxy or VPN stop a WebRTC leak?
It stops the HTTP half. Twenty-three distinct SOCKS5 endpoints were driven from a headless browser and every session that returned a candidate list reported the same STUN address, including three sessions where the HTTP request did resolve through the proxy. What changes the UDP path is a policy that blocks non-proxied UDP or a TURN server the browser is told to relay through.
Why does relay mode return nothing at all?
Because relay candidates can only come from a TURN server, and this page configures none. Setting the transport policy to relay with no TURN server returned zero candidates in both rounds, so the setting did not hide the address, it removed every path. A call placed in that state fails rather than leaking.