How to stop WebRTC leaks in Chrome
Chrome has no setting to switch WebRTC off or restrict it. It hides your local address behind a random .local name, but a script can still learn your public IP address, including your real one if you use a VPN extension or a proxy.
The fix takes a minute: Google publishes a small official extension that makes WebRTC use the same route as the rest of your traffic. The test below shows the result straight away.
Testing your browser…
How to do it in Chrome
- Open the Chrome Web Store, search for “WebRTC Network Limiter” (Google's official extension) and click Add to Chrome.
- Click the puzzle icon at the top right of Chrome, then the three dots next to WebRTC Network Limiter, and choose Options.
- Select “Disable non-proxied UDP (force proxy)”, the strictest option. If a video call stops working, choose “Use the default public interface only” instead.
- Reload this page: the test above should no longer show an address different from the one our server sees.
Chrome for Android doesn't accept extensions: on a phone, use a VPN app that covers the whole device rather than a proxy set up in the browser.
Why WebRTC can leak your IP address
WebRTC lets your browser connect directly to another device, for video calls and file transfers. To find a route, it asks a STUN server which public address you are seen from, and lists the addresses of your network interfaces. Any website can start this from a script, without asking you and without showing anything on screen.
Two things can come out. Your local address on your home or office network (192.168.x.x or similar), which most browsers now hide behind a random name ending in .local. And your public IP address: with a VPN that covers the whole device, WebRTC normally sees the VPN's address, but with a VPN browser extension, a proxy or split tunnelling, WebRTC can go around it and reveal the real address of your connection.
Switching WebRTC off completely breaks video calls in the browser (Google Meet, Teams or Discord on the web). Restricting it to the route your VPN or proxy uses stops the leak; calls usually keep working, sometimes with lower quality. If a call fails, choose the less strict option given in the steps.