A WebRTC leak happens when a website learns your real IP address through WebRTC while you’re connected to a VPN. The VPN hides your address from ordinary web traffic, but this one feature can reveal it.
Why it happens
WebRTC is built into every modern browser so that websites can make video calls and send files directly between two computers. To set up a direct connection, the browser asks a server for its public address and shares the addresses it finds with the page. If that request goes around the VPN instead of through it, the page sees the address your internet provider gave you.
Browsers used to share your local network address too. Chrome, Safari and Firefox now hide it behind a random name ending in .local, so today the risk is mostly the public address.
How to check
Connect to your VPN, then open an online WebRTC leak test in your browser. If any address it shows belongs to your internet provider rather than the VPN, it’s leaking.
How to fix it
- Turn on your VPN app’s leak protection, or its setting to send all traffic through the VPN.
- Use a VPN that covers IPv6 as well as IPv4, or turns IPv6 off while it’s connected.
- In Firefox, you can turn WebRTC off by setting
media.peerconnection.enabledto false inabout:config. Video calls in the browser then stop working.
A WebRTC leak is a cousin of a DNS leak: both let the network or a website see something the VPN was meant to hide.
On Windows
WebRTC is part of the browser, not the operating system, so leaks happen the same way on Windows and are fixed the same way.