Glossary

WebRTC Leak

A WebRTC leak happens when your browser reveals your real IP address while you use a proxy or VPN. Every page request looks proxied, but a single WebRTC connection check gives your real address away.

What WebRTC is

Web Real-Time Communication (WebRTC) is the browser technology behind video calls, screen sharing and file transfers between two browsers. Any website can start it with a few lines of JavaScript, without asking for permission.

How the leak happens

Before two browsers can connect, WebRTC runs ICE to find a network path. Part of that is asking a STUN server for your public address, and that request is a UDP packet.

A proxy only hides the traffic that goes through it. Browsers can't send UDP through a SOCKS5 proxy, and HTTP proxies carry no UDP at all, so the STUN request leaves straight from your machine with your real IP.

Your local network address (such as 192.168.x.x) used to leak the same way. Modern browsers now hide it behind a random name like 09bc1faf-2c6d-4d89-9f9e-8b3b2ba58043.local.

Where a site can see your real IP

A site has two places to look:

  • The browser-reported address: what JavaScript reads from WebRTC. Leak tests such as BrowserLeaks check this one.
  • The server-observed address: the source address of the STUN packet, as seen by a STUN or TURN server the site runs. JavaScript can't change it.

Many tools replace only the browser-reported address. That passes a simple leak test, but a site that compares the two addresses still sees the mismatch.

How sites use a WebRTC leak

  • Linking sessions: profiles that reveal the same real IP can be tied together, whatever their fingerprints say.
  • Spotting proxies: a WebRTC address that differs from the address of your page requests shows that the traffic is tunnelled.
  • Spotting spoofing: a browser-reported address that differs from the server-observed one shows that the browser rewrote it.

How to prevent it

  • Disable WebRTC. This stops the leak, but a browser without WebRTC looks unusual.
  • Limit WebRTC to proxied TCP. WebRTC then goes through the proxy, but only over TCP, unlike an ordinary browser.
  • Mask the reported address. This passes leak tests, but the STUN packet still leaves from your real IP.
  • Send UDP through the proxy. This closes both gaps, but it needs a browser that supports it and a SOCKS5 proxy that carries UDP.

How Kameleo prevents WebRTC leaks

Kameleo's WebRTC spoofing makes the browser-reported address match your proxy. The latest Chroma kernels also send WebRTC's UDP traffic through your SOCKS5 proxy when your provider supports UDP, so the server-observed address matches too. QUIC and HTTP/3 take the same path.

If your proxy doesn't carry UDP, limit WebRTC to proxied TCP. Our post on WebRTC leaks behind a SOCKS5 proxy explains the details and how to check your proxy.

Test it: BrowserLeaks shows the browser-reported address (see our guide to reading BrowserLeaks results). NodeMaven's connection checker also shows the server-observed one.

‍

Hi, we’re Kameleo!

Trusted by thousands of growth hackers, and enterprises worldwide, Kameleo makes browser automation and web scraping smarter, safer, and unstoppable. With our anti-detect browser, you can bypass anti-bot defenses, and stay one step ahead - all with human-like browsers.