WebRTC Leak Prevent — Four Levers, Ranked by What They Remove

Prevention advice usually starts with a toggle and ends with a broken video call. The leak is not one behaviour but three: a host line naming a local address, a server-reflexive line naming your public address, and a relay line naming someone else's server. Each comes from a different input, so every measure removes a different line — and a measure that removes none is not prevention, just configuration with a claim attached.

We put seven configurations through one harness: eight STUN servers, three rounds each, one connection. Two levers removed a line, two removed nothing. What follows is the diff, then the order we would apply it in; the anatomy of the lines lives in the WebRTC leak breakdown.

2 of 4prevention levers that changed the gathered set
0candidates left under relay-only, three of three rounds
3 of 3rounds unchanged by the two browser policy switches
164 msshortest reflexive reply in the baseline run

Prevention is removal: a measure that leaves the same two lines on the wire has prevented nothing.

measured

1. Prevention Is Removal, Not a Setting

Three lines, three producers. The host candidate comes from the network interface, the only line the browser generates without asking anyone. The server-reflexive candidate comes from a STUN exchange, repeated once per server you configure. The relay candidate comes from a TURN allocation, which exists only when you name a relay.

Because the producers are independent, prevention has to be argued line by line. Removing the interface from the picture does not stop the STUN query; removing STUN does not stop the interface. A page only needs one surviving line that disagrees with your HTTP exit, so a partial measure can look complete in a panel while the mismatch stays on the wire.

The cost side is asymmetric. Losing the host line costs LAN topology and nothing else. Losing the reflexive line costs your public address — the line that most often disagrees with a proxy. Losing the relay line costs your address entirely, because a TURN server answers in your place, at the price of bandwidth and a dependency that did not exist before.

So the question is not which switch is strongest, but which line you will lose per use case. The WebRTC leak test runs the same probe in your browser for numbers from your own network.

2. Four Levers, Measured Against the Same Probe

Seven configurations × three rounds against eight STUN servers.
ConfigurationCandidates per roundHost lineReflexive lineFirst candidate
Baseline, eight STUN servers2.local label14.155.235.1061,329 ms cold, 3–9 ms after
Empty server list1.local labelnone gathered965 ms cold, then 3 ms
Relay-only, no TURN named0none gatherednone gatherednothing to time
Policy: public interface only2.local label14.155.235.106936 ms cold, 10–11 ms after
Policy: no non-proxied UDP2.local label14.155.235.106950 ms cold, 3–10 ms after
Control: mDNS feature off2192.168.1.14714.155.235.106758 ms cold, 3–4 ms after
Baseline repeated2.local label14.155.235.106959 ms cold, 4–8 ms after

The empty server list is the cleanest measure of the four. With eight servers it gathered two candidates every round; with none it gathered one, the host line, and no reflexive line ever arrived — nothing left the machine to ask.

Relay-only is the blunt one. With iceTransportPolicy set to relay and no TURN server named, the probe gathered zero candidates three times out of three: no line to leak, and none to connect with either. It is the setting that makes a call fail fast rather than leak.

Timing did not move with the configuration. Cold starts ranged from 758 ms to 1,329 ms and warm starts from 3 ms to 11 ms across all seven runs. Prevention here is not a latency trade — you delete a query, you do not add a hop.

The public address is 14.155.235.106, where the same connection reported 14.155.233.50 five days earlier: the reflexive line tracks the current NAT mapping and drifts with the ISP lease. Yesterday's address is still a leak, and today's HTTP exit still disagrees with it.

3. Two Switches That Changed Nothing

The two policy rows are why this page exists. Chrome accepts a force-webrtc-ip-handling-policy switch with values such as default_public_interface_only and disable_non_proxied_udp, both described in enterprise documentation as ways to constrain how peer connections reach the network. Run them here and the gathered set does not move: two candidates, one .local host line, one reflexive line naming the same address, three of three rounds.

The obvious objection is that the harness ignored the flags. It did not: the control run disabled the mDNS feature and the host line changed from a .local label to 192.168.1.147. Feature flags are honoured; the two policy values still matched the baseline byte for byte.

We are not claiming the switches never work — only that in this build they did nothing observable, and no plan can rest on a switch nobody watched take effect. The check is cheap: gather with it on, gather with it off, compare the lines. An identical set makes the switch decoration, whatever the documentation says.

The same discipline applies to proxies. Twenty-three SOCKS5 endpoints moved the HTTP egress in our earlier comparison and none moved the address STUN reported, because the peer connection never hands its traffic to the tunnel. The SOCKS5 setup reference covers the five client fields; this section covers why they do not reach this path.

4. A Prevention Order That Survives a Re-Run

Prevention order by requirement, lever and cost.
If this is the requirementApply this leverWhat it costs
Calls must keep working, public address must not appearRelay-only with a TURN server you controlMedia bandwidth through the relay, and a server to run
No media path is needed at allEmpty server list, or WebRTC off outrightAny site feature built on peer connections fails silently
LAN address must never appearKeep the mDNS state intact, never grant capture casuallyPer-site prompts, and one grant can flip the state
A managed fleet must behave the sameSet policy, then verify the gather per buildVerification work, since policy alone measured no effect
A proxy must exit everythingProxy plus one lever above, never the proxy aloneTwo configurations to sync, checked from both layers

Then verify in this order. Establish the HTTP baseline — the address your requests actually leave from — with the proxy checker. Write the candidate set down before changing anything, because a comparison needs a before. Change one lever, re-run, diff the lines rather than the panel.

Two failure modes explain most of the confusion we see. One is a lever never connected to the line it claims to fix: the policy switches above, or any proxy applied to HTTP only. The other is a browser state that resets — the .local mask is re-evaluated per page and can vanish after a single permission grant, which is why the host line returns without warning.

If the requirement is staying unremarkable across profiles rather than merely leak-free, run the check twice: against your own baseline and against the fleet. A profile whose host line reads 192.168.1.147 while its siblings report .local labels is an outlier no proxy configuration explains — the kind of inconsistency the fingerprint test surfaces beside the WebRTC signal.

Keep the record: a prevention claim you cannot re-run on your own connection in under a minute describes someone else's browser.

Running antidetect or multi-account profiles? A prevention setting that lives in one profile and not its siblings is worse than none — the difference between them is the signal.

Download RoxyBrowser

RoxyBrowser keeps per-profile WebRTC behaviour consistent across the fleet.

Frequently Asked Questions

How do I prevent a WebRTC leak without disabling WebRTC?

Remove the input that produces the damaging line rather than the protocol. In our run, an empty iceServers list removed every server-reflexive candidate in all three rounds — one host line remained, and no query left the machine. Calls that rely on STUN traversal still work when both peers can reach each other directly; calls across restrictive NATs are the ones that break.

Does relay-only mode prevent a WebRTC leak?

It removes every line, including the ones you need. With iceTransportPolicy set to relay and no TURN server configured, our probe gathered zero candidates in three of three rounds: nothing to leak, nothing to connect with. Add a TURN server and the relay line carries that server's address instead of yours — that is the version worth deploying, and it costs bandwidth.

Why did the Chrome WebRTC policy switch not change anything?

In our harness neither default_public_interface_only nor disable_non_proxied_udp changed the gathered set: two candidates, one .local host line and one reflexive line naming the same public address, in three of three rounds. The harness was not the problem — disabling the mDNS feature in the same setup did move the host line to 192.168.1.147. Re-measure the switch on your own build before relying on it.

Does a proxy or VPN prevent a WebRTC leak by itself?

No. Twenty-three SOCKS5 endpoints moved the HTTP egress in our earlier comparison and none moved the address the STUN servers reported, because the peer connection does not hand its traffic to the tunnel. Prevention has to happen where the candidates are produced: the browser configuration, a policy that is enforced, or a TURN relay.