A WebRTC leak is the gap between two addresses your browser shows at once: the one your HTTP traffic leaves through, and the one a peer connection reports to whoever asks. WebRTC exists to find the quickest media path between two browsers, and to do that it asks the network directly — it queries STUN servers and lists every route it can find, whether or not a proxy is in play. The result: a channel where the tunnel is simply not consulted.
We measured that channel. In the run behind the WebRTC leak test, ten STUN lookups returned one address from ten different ports, and twenty-three SOCKS5 endpoints moved the HTTP egress while leaving the peer-reported address untouched. This page dissects those lines: what each candidate says, and what switches it on or off.
The leak is not the tunnel failing; it is the browser doing its job around the tunnel.
measured
When a page opens a peer connection, the browser gathers candidates: every address-and-port pair it believes could carry media to the other end. Each one becomes a line in the session description — a compact string with an address, a port, a priority and a type. Gathered behind a tunnel, the lines describe the network as the browser sees it, not as the tunnel presents it.
That is the whole leak. The lines are part of the connection setup every site participates in, so no special access is needed: the page compares the address they report with the IP your other requests arrive from, and a mismatch is a signal that someone is routing while the peer channel walked around it. This is the same comparison the anonymity checker applies at the HTTP layer, except here the browser hands over the evidence voluntarily.
Most searches for a web rtc leak end at a browser toggle, and the toggle is real — but which lines it silences depends on the types below. Turning the protocol off removes every line at the cost of calls that need it; a more surgical route is to control what gets gathered. In our runs the damaging line was almost never the expected one: the local address stayed masked while the reflexive address sailed through.
A peer channel is also one of several routes around a tunnel; the DNS leak test covers the resolver route, where queries leave through the operating system rather than the browser. Both share one property: the tunnel is configured correctly and simply is not asked.
A candidate line looks like noise until you split it on spaces. Below is a real srflx line from the measured session, every field decoded; the same grammar applies to all three types.
candidate:842163049 1 udp 1677729535 14.155.233.50 60285 typ srflx raddr 0.0.0.0 rport 0 generation 0
| Field | In the example | What it tells you |
|---|---|---|
| foundation | 842163049 | Groups candidates sharing one base; identical for siblings on the same interface |
| component | 1 | Which stream half this serves — 1 is the media channel |
| transport | udp | The protocol the browser prefers; TCP candidates appear only when UDP is blocked |
| priority | 1677729535 | Preference order; the encoding embeds the type, so host and srflx sort differently |
| address, port | 14.155.233.50 60285 | The pair the outside world can reach — for srflx, the public address after the NAT mapping |
| typ | srflx | host, srflx (server reflexive) or relay — the field that decides what the line betrays |
| raddr, rport | 0.0.0.0 0 | The local address behind a reflexive one; zeroed here |
| generation | 0 | Which ICE attempt produced the line; rises after network changes |
One detail hides in the address field itself: when mDNS obfuscation is active, a host candidate's address is not an IP but a hostname ending in .local, and the numbers above are absent. What replaces them is the next section's subject.
| Type | Measured in the run | What it exposes |
|---|---|---|
| host | Exactly 1 per connection, in 2–7 ms (479 ms cold), always a .local label; after one capture-permission grant the real pair 192.168.1.147:59541 appeared, plus a TCP candidate on port 9 | Your machine's LAN address and open ports — the strongest local signal in the set |
| srflx | 10 candidates from 5 of 8 STUN servers, all naming one address (14.155.233.50) across ten different ports — 60285, 61260, 63199, 56869, 62776, 58165, 62029, 52001, 49594 and 58159 | Your public address as the NAT maps it — the line a proxy does not move |
| relay | 0 candidates with relay-only policy and no TURN configured, in both rounds; gathering with a TURN server would show its address instead of yours | Nothing of yours — media would flow through someone else's server, which is why it is also the fix |
The srflx row carries the headline result. One address, ten ports: every answering STUN server saw the same public IP through a different NAT mapping, which is why the address is stable across servers and stubborn across tunnels. No configuration leaked here — the NAT did what NATs do.
The host row shows why permissions matter more than checklists admit. The .local mask held across eight page loads, then vanished after one capture-permission grant. The same effect appears in the fingerprint test, which treats WebRTC as one signal among many: the LAN address is not a constant attribute, it is permission-gated state.
The relay row is the quiet one. With no TURN server configured, relay-only gathering produced nothing — no server, no line to leak. That is also why forcing media through TURN is the only in-protocol fix that replaces the address: the candidate then names the TURN server, and the NAT address never appears.
Read together, the rows give a practical rule: a mismatch points at srflx, a .local name reveals LAN shape but not your address, and a relay address leaks nothing. The lines are precise about what they give away — reading them beats guessing at settings.
Switch one is capture permission, and it governs the host line. Chrome's mDNS obfuscation is not a setting — it is a state re-evaluated on every page. Without it: .local labels, LAN private. Grant it once and the real address returns, including the port 9 TCP candidates. Re-run the leak test both ways to see the difference on your own machine.
Switch two is STUN configuration, and it governs the srflx line. With no STUN servers configured, our run gathered one host candidate and zero reflexive ones — no query leaves, no NAT mapping is reported. That silences the address without killing the protocol, at the cost of calls that relied on those servers.
Switch three is the tunnel itself, and honestly it is not a switch for this leak. The proxy comparison put twenty-three SOCKS5 endpoints through the test: each moved the HTTP egress, and not one moved the address STUN reported, because the peer connection never handed its traffic to the tunnel. Whatever your client configuration says in the five setup fields, it addresses HTTP — the gather path runs around it.
That leaves the verification loop. Establish the HTTP baseline with the proxy checker; run the leak test and read the lines against section 3; then change one switch at a time and watch which line responds. A toggle that moves no line was never connected to the problem.
Running antidetect or multi-account profiles? These candidate lines are exactly what a fingerprint-comparison pass examines — a profile reporting .local where siblings report real addresses is an outlier no proxy config explains away.
Download RoxyBrowserRoxyBrowser keeps per-profile WebRTC behaviour consistent across the fleet.
It is the gap between the IP address your HTTP traffic shows and the address a WebRTC peer connection reports: the tunnel handles the first and often not the second. In our measurement, twenty-three SOCKS5 endpoints changed the HTTP egress while the peer-reported address stayed the same, which is exactly the mismatch a site can compare and flag.
Not by itself, because the peer connection asks the network directly rather than handing its traffic to the tunnel. In the proxy comparison run, all twenty-three endpoints moved the HTTP exit and none of them moved the address the STUN servers reported. Browser-level measures — disabling WebRTC, an extension, or forcing media through a TURN relay — are what actually change that reported address.
That is mDNS obfuscation: the browser replaces the local address with a random hostname ending in .local to keep the LAN private. It is conditional — in our test every host candidate carried a .local label until the page was granted capture permission once, after which the real address 192.168.1.147 appeared, including a TCP candidate on port 9.
An srflx candidate is your address as a STUN server sees it after the NAT mapping, so it exposes your public address; a relay candidate is the address of a TURN server relaying media on your behalf, so it hides yours. In the measured run, ten srflx candidates reported one address through ten different ports, while relay-only gathering without a TURN server produced zero candidates.