Skip to content

How to disable WebRTC in Chrome, Firefox, Edge, Brave and Safari

By the DataImpulse team · 25 Nov 2026 · 5 min read

WebRTC powers video calls in the browser, and it can expose your real IP address when you use a proxy. This guide explains the leak, how to test for it, and the setting for each browser.

WebRTC is the technology that lets browsers make voice and video calls without a plugin. To connect two people directly, it has to discover the network addresses of your device, and a web page can ask for them. That is how a site can sometimes learn your real IP address while your browsing goes through a proxy.

This guide explains when that happens, how to test your browser, and how to limit or switch off WebRTC in each major browser.

What WebRTC is

WebRTC stands for web real-time communication. It is a set of browser features for audio, video and data sent directly between two devices, documented in the WebRTC API reference. Video meetings, voice chat, screen sharing and some file transfer tools in the browser are built on it.

A direct connection needs each side to tell the other how it can be reached. The browser gathers candidate addresses: the device's local network address, and the public address as seen by a helper server on the internet. It usually sends these lookups over UDP.

How the leak happens

A browser proxy setting covers web requests. WebRTC's address discovery uses UDP, which an HTTP proxy does not carry. Unless the browser is told otherwise, that discovery goes out over your normal connection. The helper server sees your real public address, and the page can read it.

So the pattern is: your pages load through the proxy and show the proxy's address, while a few lines of script on the page obtain your real one.

A full VPN is less exposed, because it reroutes all traffic from the device, including UDP. Proxies set in the browser, and browser extensions that proxy only web requests, are the exposed cases. The IETF's guidance on how browsers should handle these addresses is RFC 8828.

Modern browsers already hide the local network address from pages by replacing it with a random name. That protects details of your home network. It does not protect the public address.

Test your browser

Turn your proxy on and open a WebRTC leak test, such as the one at BrowserLeaks. Compare the public address it reports with your real one, which you can see by opening our what is my IP tool with the proxy switched off.

  • If the test shows only the proxy's address, or no public address, you are not leaking.
  • If it shows your real public address, WebRTC is going around the proxy.

Repeat the test after changing any setting below, and again after a browser update.

Firefox

Firefox has a direct switch.

  1. Type about:config in the address bar and accept the warning.
  2. Search for media.peerconnection.enabled.
  3. Set it to false.

Mozilla describes the configuration editor in its about:config guide. This turns WebRTC off completely, so calls in the browser stop working until you set it back.

Chrome

Chrome has no switch in its settings to turn WebRTC off. There are two supported ways to limit it.

The first is the policy named WebRtcIPHandling, listed in Google's Chrome Enterprise policy list. Set to disable_non_proxied_udp, it stops WebRTC from sending UDP outside the proxy, so discovery either goes through the proxy or does not happen. It is applied through managed settings on Windows, macOS and Linux.

The second is a browser extension that sets the same handling policy. Choose one with care, check that it is still maintained, and re-run the leak test after installing it, since an extension that stops working fails silently.

Edge

Edge is built on the same engine as Chrome and accepts the same handling policy through its own managed settings. For a personal computer, an extension that sets the WebRTC handling policy is the practical route. Test after installing it.

Brave

Brave exposes the policy in its settings.

  1. Open Settings and go to Privacy and security.
  2. Find WebRTC IP handling policy.
  3. Choose Disable non-proxied UDP.

That is the strictest of the four choices and the one to use with a proxy.

Safari

Safari does not offer a switch for WebRTC in its normal settings. It is conservative by default and limits the addresses it reveals until a site has been given camera or microphone access. If a leak test shows your real address in Safari while you use a proxy, use a different browser for that work, or a VPN that covers the whole device.

Phones and tablets

Mobile browsers offer few controls. Firefox for Android supports the same about:config setting in some builds. On iPhone and iPad, every browser uses the system's engine and follows Safari's behaviour.

On a phone, a VPN app is the dependable fix, because it carries UDP as well as web requests.

What breaks when WebRTC is off

Anything that makes calls in the browser: video meetings, voice chat, screen sharing and some live support widgets. Sites may show an error or simply fail to connect.

The limiting option, disabling only non-proxied UDP, is gentler. Calls can still work when the proxy can carry them, and fail when it cannot. If you need calls, keep a separate browser profile with WebRTC untouched and no proxy, and use the restricted profile for proxied work.

When you should bother

  • You use a proxy set in the browser or in an extension, and the sites you visit should not learn your real address.
  • You manage several browser profiles that must each look like a separate visitor.
  • You are testing what a site shows to another country and want every signal to agree.

Anti-detect browsers handle this per profile. Their proxy settings usually include a WebRTC option that reports the proxy's address, and it should be set to match. The setup pages under integrations show where proxy settings live in each tool.

If you only use a VPN on the whole device, or you do not use a proxy at all, there is nothing to fix.

The rest of the picture

WebRTC is one of several ways a site can see past a changed address. Time zone, language, cookies and the browser's own characteristics all travel regardless of the proxy. Anonymous proxies explained lists them, and how to test a website from another country shows how to make the visible signals consistent.

Try it yourself

Create an account, add funds from US$1 and order a proxy in the country you need.

Keep reading