How to stop WebRTC leaks in Opera
Opera is one of the few browsers with a WebRTC setting of its own, in its privacy settings. By default it lets WebRTC use every network route, which can reveal your real IP address when you browse through a proxy or a VPN extension.
Changing it takes thirty seconds, and the test below confirms it worked.
Testing your browser…
How to do it in Opera
- Open Opera's settings (Alt+P, or ⌘ and comma on a Mac), or type opera://settings/privacy in the address bar.
- In Privacy and security, scroll to the WebRTC section.
- Select “Disable non-proxied UDP”: WebRTC then only goes through your proxy or VPN.
- Reload this page and run the test again.
If a video call no longer connects, choose the option that only uses the default public interface: your local addresses stay hidden and WebRTC follows the same route as the rest of your traffic.
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.