What Is a WebRTC Leak and How to Stop It

Updated:

A WebRTC leak is when your browser reveals your real IP address through WebRTC, the technology behind in-browser video calls and peer-to-peer data, even though you have set up a proxy. WebRTC discovers connection routes with STUN requests over UDP, and that traffic does not pass through an HTTP proxy. A bit of JavaScript on any page can read the result and see your home IP next to the proxy IP. This guide explains why it happens, how to test for it in minutes, and how to disable or restrict WebRTC in Chrome, Edge, Firefox and antidetect browsers.

A dedicated IP for every antidetect profile

How WebRTC works and why it leaks

WebRTC lets two browsers exchange audio, video or data directly. To do that, each side must know how it can be reached, so the browser gathers connection candidates (ICE candidates): local addresses and the public address a STUN server sees.

STUN requests usually travel over UDP. An HTTP/HTTPS proxy only forwards web traffic over TCP, so the STUN request goes straight out from your device with your real IP. A site can open a hidden WebRTC connection, read the candidates and learn your real public IP while the page itself loads through the proxy.

Modern browsers hide local addresses behind random .local names, but your real public IP can still leak without further configuration.

How to test for a WebRTC leak

  • Step 1: enable the proxy in the browser or profile, then open What is my IP to confirm it shows the proxy IP.
  • Step 2: open the WebRTC leak test in the same window.
  • Step 3: read the IPs WebRTC returns. Only the proxy IP, or no public IP at all, means you are fine.
  • Step 4: if your real home IP appears, you have a leak. Note it so you can compare after the fix.
  • Step 5: repeat for every antidetect profile, since each has its own WebRTC setting.

Stopping WebRTC leaks in Chrome and Edge

Chrome and Edge have no WebRTC switch in ordinary settings. Two common approaches:

  • A WebRTC limiting extension: Google's WebRTC Network Limiter lets you choose a mode that keeps UDP from going around the proxy. Pick that option and retest.
  • Browser policy: on managed machines, set the WebRtcIPHandling policy to disable_non_proxied_udp. It applies to every profile without relying on an extension.
  • Configure the proxy correctly first, following the Chrome proxy setup or Edge proxy setup, and test WebRTC last.

Stopping WebRTC leaks in Firefox

Firefox exposes the setting directly. Type about:config in the address bar, accept the warning, find media.peerconnection.enabled and set it to false. This turns WebRTC off completely, so browser-based video calls will stop working.

If you still need WebRTC, leave it on and test carefully after configuring the proxy. Full setup steps are in the Firefox proxy guide.

WebRTC settings in antidetect browsers

Antidetect browsers usually offer a WebRTC option per profile. Names vary by product, but the modes are similar:

ModeWhat it doesWhen to use
Replace with proxy IPWebRTC stays on but reports the proxy IPA sensible default for most profiles
DisabledWebRTC does not runWhen you never need calls; some sites find it unusual
RealReports your device's real IPAvoid while using a proxy

Checklist after fixing the leak

  • The proxy IP is the only public IP on both the IP checker and the WebRTC test.
  • No home provider DNS resolver appears in a DNS test; see what a DNS leak is.
  • Time zone and language match the proxy's country, since WebRTC is only one signal; see how websites detect proxies.
  • One dedicated, fixed IP per profile, so accounts never share an address.
  • Retest after browser updates, which can change WebRTC behaviour.
  • Follow platform rules: a clean setup keeps connections consistent but does not make accounts immune to restrictions.

Frequently asked questions

Can WebRTC reveal my IP while using a proxy?

Yes. WebRTC uses UDP, which does not pass through an HTTP proxy, so without restrictions a site can read your real public IP.

What happens if I disable WebRTC?

Browser-based video calls and meetings stop working, and some sites may find it slightly unusual. Replacing the WebRTC IP with the proxy IP is often the better balance.

Can phones have WebRTC leaks?

Yes, mobile browsers support WebRTC too. Run the WebRTC test in the phone's browser after setting up the proxy.

Which WebRTC mode is best in an antidetect browser?

Replacing with the proxy IP suits most profiles, as WebRTC keeps working without exposing your real IP. Always confirm with a test.

Does a VPN prevent WebRTC leaks?

A VPN tunnels all device traffic and usually reduces the risk, but not always completely. Whether you use a proxy or VPN, test it.

A dedicated IP for every antidetect profile

Private IPv4 in seven countries and static ISP in Vietnam and the US. Delivered as ip:port:user:pass, ready to paste into a profile, activated automatically.

View pricing

Related articles

Free tools
WebRTC Leak Test (Compare HTTP Proxy IP vs. UDP STUN Candidates)
Instant WebRTC STUN leak detector. Compare your HTTP proxy IP against UDP WebRTC ICE candidates to make sure your real residential or LAN IP is not exposed.
Knowledge base
What Is a DNS Leak and How to Fix It with a Proxy
A DNS leak happens when domain lookups go through your own provider instead of the proxy side. Learn how to test for DNS leaks, read results correctly and fix them.
Proxy setup
How to set up a proxy in AdsPower (Custom Proxy & Bulk Manager)
Step-by-step guide to configuring HTTP ip:port:user:pass proxies in AdsPower (SunBrowser & FlowerBrowser) for single profiles and bulk imports.
Use cases
Proxies for Multi-Account Management (MMO)
Running many accounts for MMO work? Learn why one static private proxy per account keeps profiles separated, which country to pick and how to set it up.
Products
Static residential ISP proxies
Static residential ISP proxies in the United States and Vietnam. IPs registered to consumer internet providers, dedicated to one customer, unlimited bandwidth.
Products
Private IPv4 datacenter proxies
Buy private IPv4 datacenter proxies in the US, Vietnam, Japan, South Korea, Singapore, the UK and Hong Kong. HTTP(S), unlimited bandwidth, auto activation.
ISP · vietnam
Vietnam Static ISP Proxies: Home-Network Vietnamese IPs for Your Most Valuable Accounts
Vietnam static ISP proxies on consumer internet provider IPs. A fixed Vietnamese IP for main Shopee shops, TikTok Shop, Facebook ad accounts and Zalo OA.
IPV4 · united states
US Private IPv4 Proxies: Fast, Dedicated American Datacenter IPs
Dedicated US private IPv4 proxies for scraping, rank tracking, ad checks and Amazon research. Static IP, one user per IP, unlimited bandwidth, fast activation.