VPN Knowledge Scan: What Is a WebRTC Leak?
A WebRTC leak = your browser's real-time communication feature bypasses the VPN and exposes your real IP. To build peer-to-peer audio/video connections, WebRTC enumerates all your network interfaces'…
VPN Knowledge Scan: What Is a WebRTC Leak?
A WebRTC leak = your browser's real-time communication feature bypasses the VPN and exposes your real IP. To build peer-to-peer audio/video connections, WebRTC enumerates all your network interfaces' IPs (LAN and public alike) — and that lookup doesn't go through HTTP proxies, rendering VPN/proxy protection useless for it.
The "VPN Knowledge Scan" series walks through a VPN's leak blind spots one by one — this entry covers WebRTC, the most overlooked and most direct leak of them all.
Why WebRTC leaks
WebRTC is the browser's built-in calling tech (Google Meet, Discord web, and friends use it). Establishing a P2P connection requires knowing "who can reach you directly" — so it enumerates every candidate address (ICE candidates): local IPs, NAT public IPs, relay IPs.
The problem: this enumeration happens at the browser layer, outside HTTP proxy rules. SOCKS5/HTTP proxies can't intercept it — your proxy config doesn't govern WebRTC's UDP flows. Result: the browser shows a proxy IP while a single line of JS harvests your real IP.
What it leaks
- Public IP (the fatal one): your real identity
- LAN IPs:
192.168.x.x-type — aids fingerprinting - IPv6 addresses: enumerated too when IPv6 is enabled
How to test
- Connect your VPN/proxy
- Visit
ipleak.net,browserleaks.com/webrtc - Read the IPs shown:
- ✅ Only VPN/proxy IP + local NIC IPs = safe
- ❌ Your real public IP = leaking
How to defend
| Method | How | Fit |
|---|---|---|
| Disable WebRTC | Firefox: about:config → media.peerconnection.enabled=false; Chrome needs an extension | Thorough but breaks calling sites |
| Browser extensions | WebRTC Leak Prevent, uBlock's WebRTC option | Toggleable, flexible |
| System-level takeover | TUN-mode proxy captures all traffic — WebRTC included | Cleanest fix — AirLane TUN mode covers it by default |
| Disable IPv6 | System-level off, shrinking the candidate list | Supplementary |
TUN mode: the root fix
Browser-layer patches plug only the browser hole — other apps (Discord desktop, conferencing software) expose P2P addresses the same way. TUN-mode proxying captures all traffic at the system NIC layer — every app's UDP rides the tunnel and leaks disappear at the root. It's a fundamental advantage of modern proxy clients like AirLane over browser-extension proxies.
Related tools
- No-fuss approach: MirrorSpeed — tunneled DNS + app coverage
- Root fix: AirLane TUN mode — system-level capture
Related: UDP DNS leaks · QUIC leaks · What is TUN mode