How to stop WebRTC leaks
What the leak actually is, the setting that closes it in each browser, and how to check it worked.
Short answer
Turn it off, or use a VPN app. Firefox can switch WebRTC off in about:config, and Brave has a WebRTC IP handling setting. Chrome, Edge, Safari and phones have no switch, so use your VPN's installed app rather than a browser extension. Without a VPN, there is nothing extra to leak.
- Cost
- Free
- Time
- About 5 minutes per browser
The steps
- Run the test firstFree way: The WebRTC leak test, with your VPN connected if you use oneTime: 1 minuteDone when: You know whether it shows an extra address
- Firefox: switch WebRTC offFree way: In
about:config, setmedia.peerconnection.enabledto falseTime: 2 minutesDone when: The WebRTC leak test shows No leak - Brave: change the IP handling policyFree way: In Brave's Settings, search for WebRTC IP handling policy and choose Disable non-proxied UDPTime: 2 minutesDone when: The WebRTC leak test shows No leak
- Chrome, Edge, Safari and phones: use the VPN appFree way: Your VPN's installed app instead of its browser extensionTime: 5 minutesDone when: The WebRTC leak test shows No leak with the VPN on
- Close the gaps if it still leaksFree way: Take the browser out of split tunnelling and turn on IPv6 leak protection in the VPN appTime: 5 minutesDone when: The privacy scan shows Closed for WebRTC
WebRTC is the part of your browser that runs video calls and screen sharing without a plugin. To connect two people directly, it asks a public server (a STUN server) what address you are coming from and hands the answer to the page. Any page can ask, with no permission prompt.
Usually the answer is the address every site already sees. It becomes a leak when you are on a VPN or proxy and WebRTC goes around the tunnel, reporting your real address instead of the VPN's. That is what the privacy scan flags.
Firefox
Firefox lets you switch WebRTC off completely with a setting.
- Type
about:configin the address bar and press Enter. Accept the warning. - Search for
media.peerconnection.enabled. - Double-click it so the value reads false.
The trade-off is that video calls in the browser (Google Meet, Jitsi, Discord in a tab, some customer support chats) stop working until you set it back to true. Flip it back for a call and off again afterwards, or keep a second Firefox profile with WebRTC on.
If the setting keeps reverting after a restart, something else is managing it: an extension, a user.js file in your profile, a work policy, or Firefox Sync copying it from another computer.
Chrome and Edge
Chrome and Edge have no switch to turn WebRTC off, and the advice you will see everywhere, uBlock Origin's "Prevent WebRTC from leaking local IP addresses" checkbox, doesn't help on desktop. The uBlock Origin developers removed it from desktop browsers in version 1.38, because the .local names made it unnecessary. The full uBlock Origin doesn't run in Chrome or Edge's newer extension system, and uBlock Origin Lite, the replacement, has no WebRTC setting.
What still works:
- Use the VPN's own app, not a browser extension. An installed VPN app sends everything, WebRTC included, through the tunnel, so the STUN server sees the VPN address. Many "VPN" browser extensions are only proxies for page traffic, and WebRTC goes straight past them. This is the most common cause of the leak.
- Google's WebRTC Network Limiter extension. Published by Google, it makes the browser send WebRTC only over the same route as normal web traffic. It is rarely updated, so check that it is still listed and working before relying on it.
- Check split tunnelling. If your VPN app lets some apps or sites bypass the tunnel, make sure the browser isn't one of them.
Brave
Brave keeps the Chromium setting that Chrome hides:
- Open Settings and search for WebRTC IP handling policy (it sits under Privacy and security on most versions).
- Choose Disable non-proxied UDP for the strongest option, or Default public interface only if calls in the browser break.
"Default public interface only" makes WebRTC use the same route as normal web traffic, which is the VPN tunnel when a VPN app is running. "Disable non-proxied UDP" also refuses to send WebRTC outside a proxy, which can stop some calls from connecting. Brave uses the stricter option in its Tor windows.
Safari on Mac
Safari has no setting to disable WebRTC, and it already hides local addresses unless a page has your camera or microphone. Your public address is still visible to a STUN server, so the fix is the same as for Chrome: a VPN app that covers the whole system. Apple's iCloud Private Relay is not a VPN for this purpose; researchers have shown in the past that WebRTC traffic in Safari did not go through it.
Phones
iPhone and iPad. Most browsers on iPhone and iPad use Safari's engine underneath, so Chrome or Firefox there usually behaves like Safari. There is no WebRTC switch. A VPN app, which iOS runs for the whole phone, keeps WebRTC inside the tunnel.
Android. uBlock Origin on Firefox for Android may offer a "Prevent WebRTC from leaking local IP addresses" setting under its dashboard's Privacy section; if it's there, turn it on. Brave on Android has the same WebRTC IP handling policy setting as on desktop. Chrome for Android has neither, so the fix is a system VPN app.
Check that it worked
Run the WebRTC leak test after each change, with your VPN connected if you use one. A pass is one of two results:
- WebRTC is blocked, so it handed out no address at all (Firefox with the setting off).
- WebRTC shows the same address websites already see, so nothing extra leaks.
If the test still shows a second address, check, in this order: that the VPN is the app and not an extension, that the browser isn't excluded by split tunnelling, and that you restarted the browser after changing the setting. If the leaked address is an IPv6 one (long, with colons), your VPN may not be tunnelling IPv6; look for an IPv6 leak protection option in the app, or turn IPv6 off on that network adapter.
When a VPN helps and when it doesn't
A VPN app fixes this leak as a side effect, because it changes the route your computer uses for everything. Without a VPN, WebRTC reports the same address every website sees anyway, and turning it off gains you nothing except broken video calls.
A VPN does not help, and can cause the problem, when it is a browser extension, when split tunnelling lets the browser out, or when it doesn't cover IPv6. Before paying for one, read Do you actually need a VPN?
Questions people ask
Does a VPN stop WebRTC leaks?
A VPN app installed on the device does, because it sends everything, WebRTC included, through the tunnel. A VPN browser extension usually doesn't: many are only proxies for page traffic, and WebRTC goes straight past them. Split tunnelling or missing IPv6 support can also let it leak.
Does uBlock Origin stop WebRTC leaks?
Not on desktop. The developers removed the 'Prevent WebRTC from leaking local IP addresses' option in version 1.38, and uBlock Origin Lite has no WebRTC setting. On Firefox for Android, check uBlock Origin's dashboard Privacy section for a WebRTC option; if it's there, turn it on.
Can I turn off WebRTC in Chrome?
No. Chrome and Edge have no setting to turn WebRTC off. Use your VPN's installed app so WebRTC goes through the tunnel, or try Google's WebRTC Network Limiter extension. It is rarely updated, so check that it is still listed and working first.
Will disabling WebRTC break video calls?
Yes, in that browser. With Firefox's setting off, calls in a tab such as Google Meet, Jitsi or Discord stop working until you set it back to true. Flip it back for the call, or keep a second Firefox profile with WebRTC on for calls.
Do I need to fix WebRTC if I don't use a VPN?
No. Without a VPN or proxy, WebRTC reports the same address every website already sees, so nothing extra is given away. Turning it off gains you nothing except broken video calls.