VPNtekaEnglish

WebRTC leak test

Press “Run the WebRTC leak test”: within a few seconds you’ll see which public addresses your browser reveals through WebRTC and whether they match the address websites see.

WebRTC leak

When you press the button, your browser contacts the STUN server ⁨stun.l.google.com⁩ (⁨Google⁩): that’s how the test learns which address the browser reveals through WebRTC. Nothing is requested from third parties before you press it, and the result isn’t sent anywhere.

Address websites see
—
Public addresses via WebRTC
—

Run the test with your VPN on to see whether your browser leaks your real address outside the VPN tunnel. It works without a VPN too: then it shows which address your browser reveals to websites.

A WebRTC leak exposes your real address outside the VPN

WebRTC is the browser technology behind calls, video chat and data exchange without plugins (MDN ). To connect people directly, the browser gathers its own addresses and asks a STUN server for its public one: the server replies with the address and port the request came from (STUN standard ).

Any page’s script can start this address gathering. Browsers can hide addresses on your home network behind names like ….local (a method from an IETF draft that expired without becoming a standard), but they don’t hide your public address.

If your VPN lets some traffic bypass the tunnel (split tunneling), WebRTC can learn both the VPN’s address and your public address from your ISP, the one the VPN itself connects over. The IETF standard on WebRTC and IP addresses describes exactly this case.

How to read the result

  • No leak—WebRTC shows the same address websites see. With your VPN on, that’s the VPN server’s address.
  • A different address—with your VPN on, any site running a WebRTC script can learn it. To see whether it’s your real one, turn the VPN off and compare it with the address on the “What is my IP” page. An IPv6 address from your ISP is your real address too, even if that page shows an IPv4 one.
  • No public address—WebRTC revealed no public address. This happens when WebRTC is restricted in your browser or your network blocks the request to the STUN server. A result like this can’t tell you whether there’s a leak: without a reply from the STUN server, the test can’t learn your public address.
  • WebRTC is off—nothing can leak through it.

How to stop a WebRTC leak

  1. Open your VPN app’s settings and find split tunneling (the app may call it something else). Your browser shouldn’t be on the list of exclusions: its traffic has to go through the tunnel. If your VPN is a browser extension rather than an app, it works like a proxy, and WebRTC can bypass a proxy (same IETF standard ), so install the VPN app instead.
  2. In Chrome, you can install Google’s WebRTC Network Limiter extension. It stops WebRTC from using private addresses and, while you browse through a VPN, your ISP’s public address.
  3. In Firefox, open about:config and set media.peerconnection.ice.default_address_only to true. WebRTC then stays on but uses only your main connection’s address (the VPN’s, while you’re connected). Setting media.peerconnection.enabled to false turns WebRTC off completely (Mozilla wiki ), and then browser calls stop working.
  4. Run the test again with your VPN on.

Why the test needs a STUN server

Without a STUN server, the browser doesn’t know its public address, and the test couldn’t see which address WebRTC might reveal to a site. The server we use and the company that runs it are named above the button. Your browser contacts it only after you press the button, and the STUN server sees your address just as any website you visit does.

The test result never leaves your browser. For comparison, the page asks our server for the address websites see—the same lookup the “What is my IP” page makes. Details are in our privacy policy. The “VPN check” runs this test alongside your address, country and network, and explains how to check DNS by hand.

Frequently asked questions

What is a WebRTC leak?

It’s when your browser uses WebRTC to reveal an IP address other than your VPN’s—usually your real one from your ISP. Any website can collect it with a script, without asking you.

Does a VPN protect against WebRTC leaks?

Usually, yes: if all your device’s traffic goes through the VPN tunnel, WebRTC only shows the VPN’s address. A leak can happen when some traffic bypasses the tunnel, for example with split tunneling, or when your VPN is a browser extension rather than an app.

How do I stop WebRTC leaks in Chrome?

First make sure your VPN app doesn’t exclude Chrome from the tunnel. You can also install Google’s WebRTC Network Limiter extension: while you browse through a VPN, it stops WebRTC from using your ISP’s address.

Should I turn off WebRTC in my browser?

Not if the test finds no leak with your VPN on. With WebRTC off, calls and video chats in the browser stop working.

Do you send the test result to your server?

No. Your browser collects and compares the WebRTC addresses itself. To have something to compare with, it asks our server for the address websites see, the same lookup the “What is my IP” page makes. That service keeps no record; the web server log keeps a line with your address truncated.

Related pages

Sources

  1. WebRTC samples (Google): stun.l.google.com · checked