Network

What is WebRTC Leak?

A WebRTC leak is a browser exposing your real IP address through its peer-to-peer connection API while page traffic goes through a proxy. WebRTC gathers ICE candidates over its own UDP sockets, which ignore the browser's proxy configuration, and any script on the page can read those candidates without asking permission.

WebRTC has to find a path between two peers before media flows, so it collects ICE candidates. Host candidates are the addresses on local interfaces. Server-reflexive candidates come from a STUN server, which replies with the public address it saw the packet arrive from. Relay candidates route through a TURN server when nothing else connects. The server-reflexive candidate is the one that betrays you, because a STUN request sent over a raw UDP socket travels on the underlying connection rather than through an HTTP or SOCKS proxy set inside the browser.

A detection script is short. It creates an RTCPeerConnection pointed at a public STUN server, opens a data channel, calls createOffer, and reads the candidate lines that arrive on the icecandidate event. Each line contains an address. No camera or microphone permission is involved, no prompt appears, and the whole thing finishes in well under a second. Fingerprinting vendors run it alongside canvas and TLS checks and store the result next to the exit IP for comparison.

Browsers have narrowed the exposure without closing it. Chrome replaces host candidates with randomised .local mDNS hostnames, which hides LAN addresses but does nothing about the public reflexive candidate. Chrome's WebRTC IP handling policy can be set to block non-proxied UDP, and Firefox exposes a preference that turns peer connections off entirely. Antidetect browsers take a different route and rewrite the reported address to the proxy IP so the two agree. Switching WebRTC off completely has a cost, since a profile with no peer connection support looks unusual and video calls stop working.

IPv6 deserves separate attention. A proxy that only carries IPv4 while the host has native IPv6 will produce an IPv6 reflexive candidate that points straight at the subscriber line, even though every IPv4 check passes. Verify inside the exact browser profile and proxy configuration you plan to use, since a clean result in another browser on the same machine says nothing about this one. Compare the addresses in the candidate list against the exit IP; they should agree, or the candidates should be absent for a stated reason.

Where you meet it

You meet this in the WebRTC dropdown of an antidetect browser, where the choice is between real, replaced and disabled, and in the audit that follows a batch of accounts getting flagged despite clean proxies. It also appears when a scraping stack uses a full Chromium instance with proxy settings applied at the browser level rather than the network level.

Common questions

How do I stop a WebRTC leak?

Set the browser to block non-proxied UDP, use an antidetect profile that rewrites the reported address to the proxy IP, or route the whole machine through a network-level tunnel that captures UDP. Disabling peer connections outright also works, at the cost of breaking calls and standing out.

Does turning WebRTC off make me anonymous?

No. A profile with WebRTC missing entirely is itself unusual, and detection scripts record the absence. Matching the reported address to your proxy exit is a quieter outcome than removing the API, and it keeps sites that legitimately use peer connections working.

Does using a proxy prevent WebRTC leaks?

An HTTP or SOCKS proxy configured inside the browser does not, because STUN traffic uses UDP sockets that bypass those settings. A system-level tunnel that captures all UDP generally does. Test rather than assume, since the behaviour differs between browsers and versions.

Related terms

DNS Leak
A DNS leak happens when a client sends its name lookups outside the proxy tunnel, so queries travel over the real ISP connection while the traffic itself exits on the proxy IP. The resolver operator, and any authoritative server it contacts, then sees a lookup tied to your actual network, region and provider.
Browser Fingerprint
A browser fingerprint is an identifier derived from the properties your browser exposes - user agent, screen and window dimensions, timezone, language, installed fonts, canvas and WebGL rendering output, audio stack behaviour, hardware concurrency. Combined, these values are often unique enough to recognise the same browser across sessions and sites without any cookie.
IP Address
An IP address is the numeric identifier a device presents on an IP network so packets can be routed to and from it. IPv4 writes 32 bits as four decimal octets, such as 203.0.113.7. IPv6 writes 128 bits as hexadecimal groups, such as 2001:db8::1. Every request a server logs is tied to one.
IPv4
IPv4 is version 4 of the Internet Protocol, addressing hosts with 32 bits written as four dot-separated octets, which gives roughly 4.3 billion addresses. The top-level pool ran dry in 2011, pushing providers toward private addressing, carrier-grade NAT and a paid transfer market. Nearly all proxy traffic still runs over IPv4 because that is what target sites accept.
IPv6
IPv6 is version 6 of the Internet Protocol, addressing hosts with 128 bits written as eight hexadecimal groups, such as 2001:db8::1. The space is large enough that carriers assign each subscriber a whole subnet, usually a /64 or wider, so reputation systems score prefixes instead of single addresses. Adoption is broad but far from universal.
CGNAT
Carrier-grade NAT is address translation performed by an ISP rather than in the customer's router, putting many subscribers behind one public IPv4 address. Mobile networks depend on it. Each customer holds a private or shared-range address, usually from 100.64.0.0/10, and the carrier rewrites the source address and port on every outbound flow.
NAT
Network Address Translation rewrites the address and port fields of packets as they cross a router, letting many private hosts share one public IP. The router keeps a translation table, mapping each outbound flow to a free public port and reversing the rewrite on replies. Home routers do this for a household; carriers do it for whole regions.
ASN
An Autonomous System Number identifies a network that announces its own IP address ranges to the rest of the internet through BGP. Every routable address sits inside a prefix announced by some AS, so the ASN behind an IP tells you who operates it - a mobile carrier, a hosting provider, a home ISP or a corporate network.

Real 4G/5G mobile and residential IPs

PROXIES.SX runs carrier IPs in 100+ countries with HTTP and SOCKS5 on every endpoint. $4/GB down to $2.40/GB at volume, free endpoints and rotation, and your GB never expire.