What is a WebRTC leak?

WebRTC lets browsers make video calls and share files directly with each other. To connect, a browser gathers the addresses other peers could reach it at: the addresses of your local network and the public address a STUN server sees your traffic come from. Any web page can start that gathering and read the addresses, without asking you. When you browse through a VPN, the page normally sees only the VPN's address, but WebRTC can go around the tunnel and reveal your real public IP address. That is a WebRTC leak.

Tool description

The test runs as soon as the page opens. It asks your browser for the addresses WebRTC would offer, using Cloudflare's public STUN server, and loads the IP address this website sees your requests come from. Then it compares them:

  • If WebRTC shows only the address websites already see, nothing leaks.
  • If WebRTC shows another public address, such as your provider's address while a VPN is on, that address leaks.
  • It also tells you whether your local network addresses are visible or hidden behind random .local names, as modern browsers do.

Every address WebRTC found is listed with its type. Press Run the test again after you change your VPN or browser settings.

Features

  • Finds public addresses revealed through STUN, in IPv4 and IPv6
  • Compares them with the address websites see
  • Shows whether local network addresses are exposed or hidden
  • Detects when WebRTC is turned off or blocked

Tips

  • A different IPv6 address can leak even when IPv4 goes through the VPN. Many VPNs offer IPv6 leak protection; turn it on, or turn IPv6 off.
  • Most VPN apps and browser extensions have a WebRTC leak protection setting. Firefox can turn WebRTC off with media.peerconnection.enabled in about:config.
  • The test sends a request to Cloudflare's STUN server, like a video call would, and keeps nothing.