WebRTC leak: what it is and how to check your browser
A WebRTC leak happens when a page reads some of the network addresses your browser gathers for WebRTC, the technology that lets browsers make video calls and send data directly to each other. In the past this exposed local and sometimes real public IP addresses, even behind a VPN.
Check your browser right now
Checking your browser…
How WebRTC finds addresses
To connect two browsers, WebRTC collects ICE candidates: the device's local address on its network, the public address as a STUN server sees it, and relay addresses. A page can set up such a connection without any call and read the candidates the browser returns.
Local address leak
A local address such as 192.168.1.23 does not reveal where you are. It does help tell your device apart from others behind the same router, and it has been part of many fingerprints. Modern browsers hide it by default: Chrome, Edge and Firefox replace it with a random name ending in .local (mDNS), and Safari does not expose it without camera or microphone permission.
Public address leak behind a VPN
This case is more serious: a STUN request leaves by a route that bypasses the VPN tunnel and returns your real public address. Whether that happens depends on how the VPN is set up. Apps that send all traffic through the tunnel prevent it. Browser extensions sold as VPNs are usually proxies for browser traffic only, and they do not cover WebRTC unless they also change the browser's WebRTC policy.
How to check
The short check on this page runs without the WebRTC test. The WebRTC test (the "Run the test" link under the check) and the full report look for both leaks. They gather the local address without any outside server and show whether it is visible or hidden behind mDNS. They get the public WebRTC address through our own STUN server and compare it with the IP the page was loaded from. If the addresses differ, part of your traffic goes around the VPN or proxy, and the findings will show it.
The My IP page checks only the local address.
How to fix a leak
- Keep your browser updated: current versions hide local addresses by default.
- Use a VPN app that routes all system traffic instead of a proxy extension that covers only the browser, and turn on the app's leak protection if it has one.
- In Firefox you can switch WebRTC off completely with media.peerconnection.enabled = false in about:config. Video calls in the browser will then stop working.
- In Chromium-based browsers, an extension that sets the WebRTC IP handling policy can limit candidates to the proxied route.
For website owners
A public WebRTC address that differs from the address of the connection is a strong sign of a VPN or proxy. A visible local address only means the browser does not hide it. Neither one means fraud on its own, since many people use a VPN for privacy.
Frequently asked questions
- Can WebRTC leak my IP when I am not on a call?
- Yes. Any page can start gathering candidates without a call and without showing anything, which is why browsers now hide local addresses by default.
- Is mDNS hiding enough?
- For local addresses, in most cases yes. It does not protect against a public address leak through a VPN that does not cover all traffic.
- Does SpoofLens contact a STUN server?
- Only its own (edge.spooflens.com), and only during a browser check. We use no third-party STUN servers.
Read next
- Browser fingerprinting: what it is and how it works
- How websites detect bots and automated browsers
- Canvas, WebGL and audio fingerprints: how they work
- Time zone vs IP: why websites notice your VPN
- How websites recognise antidetect browsers
- User-Agent Client Hints: what replaced the User-Agent string