Browser Fingerprinting & LeaksRutvij Khatri•9 min read•Published 2026-10-27

WebRTC IP Leaks Explained: Why Your Real IP Address Bypasses Your VPN and Brave Defaults

Learn how WebRTC ICE candidates leak your local LAN and public ISP IP addresses even when connected to a commercial VPN or using privacy browsers like Brave.

Executive Verdict & Direct Answer
✓ 100% Client-Side In-Browser Engine

Learn how WebRTC ICE candidates leak your local LAN and public ISP IP addresses even when connected to a commercial VPN or using privacy browsers like Brave. WebRTC queries external STUN servers via UDP, which can bypass HTTP proxies and misconfigured VPNs to expose your true ISP IP address.

The Conflict Between Real-Time Audio/Video and Anonymity

WebRTC (Web Real-Time Communication) is an open web standard that enables browsers to establish direct peer-to-peer audio, video, and data channels without requiring browser plugins. It powers Google Meet, Discord, Zoom Web, and countless video conferencing platforms.

To establish a direct peer-to-peer connection through network firewalls and NAT (Network Address Translation) routers, WebRTC uses the ICE (Interactive Connectivity Establishment) protocol, communicating with STUN (Session Traversal Utilities for NAT) servers.

During this negotiation, the browser asks a STUN server: "What is my public IP address?" The STUN server reflects back the user’s true public ISP IP address. Because this request operates over UDP outside standard HTTP proxy settings, it frequently bypasses desktop VPN tunnels and browser proxy extensions.

Key Investigative Takeaway

WebRTC queries external STUN servers via UDP, which can bypass HTTP proxies and misconfigured VPNs to expose your true ISP IP address.

How Websites Exploit RTCPeerConnection to De-Anonymize Users

A website does not need your permission (such as camera or microphone prompts) to initiate an `RTCPeerConnection`. A silent JavaScript snippet can create an ICE candidate listener:

As the ICE candidates arrive, the script extracts candidates matching `typ srflx` (server reflexive candidates, which contain your public IP) and `typ host` (local network IP addresses like `192.168.1.45`).

Advertising networks, fraud detection firms, and law enforcement agencies use these candidates to identify the true geographical origin of a user who is otherwise masking behind a VPN or Tor relay.

Testing and Remediating WebRTC Leaks (Granular WAN vs. LAN Analysis)

OverlayCheck’s Browser Fingerprint tool initiates an in-memory STUN probe against Google’s public STUN server (`stun:stun.l.google.com:19302`) and granularly segregates leaked candidates into two distinct threat tiers:

1. Public WAN IP Leaks (+35 Risk Pts): Reflects your external router IP, exposing your physical city, ISP, and home network identity.

2. Private LAN Subnet Leaks (+15 Risk Pts): Reflects your local Wi-Fi RFC1918 address (e.g. 192.168.x.x), enabling local device mapping.

To remediate WebRTC leaks across major configurations:

• In Brave Browser: Navigate to `brave://settings/shields` -> Scroll to "WebRTC IP Handling Policy" -> Change from default to "Disable non-proxied UDP". This stops STUN from reflecting your public interface.

• In Firefox: Navigate to `about:config` and set `media.peerconnection.enabled` to `false`.

• System-Wide: Use a VPN with active UDP routing and an enabled network kill-switch.

Key Investigative Takeaway

Brave permits public UDP STUN reflection by default for WebRTC compatibility. Setting "WebRTC IP Handling Policy" to "Disable non-proxied UDP" eliminates the leak.

WebRTC Leak Diagnostics: OverlayCheck vs. Standard Leak Testers

Assessing default WebRTC handling, granular WAN vs. LAN isolation, and browser-tailored fixes.

Feature / DimensionOverlayCheck (Client-Side)Standard BrowserLeaks WebRTCGeneric IP Checkers (WhatIsMyIP)
Granular Public WAN vs. Local LAN Separation
Independent detection & scoring (+35 WAN, +15 LAN)
Lists raw candidates without risk weightingChecks HTTP headers only (Cannot detect STUN leaks)
Brave & Hardened Browser Guidance
Tailored brave://settings/shields remediation steps
Generic "install extension" adviceNone
Local mDNS Obfuscation Check
Validates browser UUID masking for local IPs
Displays raw stringNot supported

Command-Line Automation & CLI Workflows

For security engineers and forensic examiners automating pipelines or conducting terminal audits, the equivalent low-level commands can be executed natively:

Audit WebRTC ICE Candidates via JavaScript
javascript
const pc = new RTCPeerConnection({ iceServers: [{ urls: "stun:stun.l.google.com:19302" }] });
pc.createDataChannel("");
pc.createOffer().then(o => pc.setLocalDescription(o));
pc.onicecandidate = (e) => { if (e.candidate) console.log("Candidate:", e.candidate.candidate); };
Technical Breakdown: Initializes a minimal WebRTC peer connection and logs all generated ICE candidates, revealing any exposed public or private IP addresses.

Frequently Asked Technical Questions

Q1:Why does Brave leak my public IP address in WebRTC tests by default?

Brave balances privacy with web compatibility so that video conferencing services (Google Meet, Discord, Zoom) work seamlessly. By default, it allows UDP packets on the default public interface. Toggling "WebRTC IP Handling Policy" to "Disable non-proxied UDP" in brave://settings/shields stops all public IP leaks.

Q2:Does disabling WebRTC break video calls on Google Meet or Discord?

Yes. Disabling WebRTC entirely prevents browser-based peer-to-peer calling. If you rely on browser video conferencing, use a VPN that enforces UDP traffic routing rather than disabling WebRTC entirely.

Q3:What is the difference between local IP and public IP in WebRTC?

Local IPs (like 192.168.1.15) represent your device on your home Wi-Fi network. Public IPs represent your connection to the broader internet. A leak of your public IP exposes your real physical location and ISP.

#webrtc ip leak test#vpn leak detection#stun ice candidate leak#disable webrtc brave#real ip address exposed
RK
Rutvij KhatriSecurity Analyst & Aspiring Security Engineer

Security Analyst and Aspiring Security Engineer passionate about client-side media verification, binary parsing, web application security auditing, CTF steganography challenges, and zero-knowledge privacy architecture.

Connect on LinkedIn

Companion Verification & Privacy Toolkits

Cross-Cluster Workflows

Related Deep Dives in Browser Fingerprinting & Leaks