Skip to content
WebRTC IP leak

WebRTC IP leak test: which addresses JavaScript can see

WebRTC is the network part of a browser fingerprint test. With new RTCPeerConnection() and a STUN server, JavaScript on any page can collect the IP addresses your browser would use for a video call. If one of them is your real public address while you use a VPN, the VPN is not carrying WebRTC traffic.

Live test

This card shows only the webrtc ip leak result. To see all six fingerprint surfaces at once, use the full browser fingerprint test.

WebRTC IP leak
measuring…

WebRTC connection setup can show IP addresses to JavaScript. The public address is the one a STUN server sees: your VPN’s address if the VPN carries this traffic.

Change this value and compare

Browser Leaks Fingerprint Shield is a Chrome extension that changes canvas, WebGL, audio and other values. Install it, reload this page and compare the result. Changing these values can break some sites. See the store page for what the free and paid versions include.

View on Chrome Web Store
What is a WebRTC IP leak?

What is a WebRTC IP leak?

WebRTC's ICE (Interactive Connectivity Establishment) protocol gathers candidates for peer-to-peer connections. Each candidate includes one of your addresses: host candidates describe your local network address (e.g. 192.168.1.42), srflx candidates show your public IP as a STUN server sees it, and relay candidates use a TURN server.

Modern Chrome replaces local addresses in host candidates with random .local (mDNS) names, so the local address usually stays hidden. The srflx candidate still shows the public IP the STUN server sees. With a VPN that routes all traffic, that is the VPN's address. With split tunneling, or a VPN that does not carry this traffic, it can be your real address.

How the test works

How the test works

The test creates an RTCPeerConnection with stun:stun.l.google.com:19302 as the ICE server, opens a dummy data channel, calls createOffer() and setLocalDescription(), and listens for onicecandidate events for 1.5 seconds. Each candidate string is searched for IPv4 addresses. Private ranges (10.x, 192.168.x, 172.16-31.x, plus link-local and carrier-grade NAT ranges) are shown as local, and the rest as public.

The test reads IPv4 addresses only, and .local names are counted as candidates but not listed. This check sends one request to Google's public STUN server, which is how it learns your public address. Compare the public IP shown here with the address your VPN reports.

How to stop WebRTC IP leaks

How to stop WebRTC IP leaks

Start with your VPN: a VPN that routes all traffic, including UDP, gives the STUN server the VPN's address. In the browser, you can turn off WebRTC (this breaks video calls in the browser) or limit which network interfaces WebRTC may use. Chrome supports this through its WebRTC IP handling policy, which extensions and managed browser settings can set.

Browser Leaks Fingerprint Shield is a Chrome extension that includes a WebRTC protection option. Its Chrome Web Store page describes how it works.

FAQ

WebRTC IP leak questions

Why does the test show an IP address while my VPN is on?
Check which address it is. If the public IP matches your VPN’s address, WebRTC is going through the VPN and nothing leaked. If it is the address your internet provider gives you, WebRTC traffic is leaving outside the VPN tunnel, often because of split tunneling or a VPN that does not route UDP. Turn on the VPN’s option to route all traffic, or limit WebRTC in the browser.
What is mDNS / .local in WebRTC?
Modern Chrome replaces local IP addresses with random names like "abc12345-....local", so websites do not see your local address. The name is random and is not your IP.
Does disabling WebRTC entirely fix this?
Yes, but it breaks voice and video calls in the browser and any site that uses WebRTC for real-time communication. Limiting which network interfaces WebRTC can use is usually a better trade-off.
Is this test the same as a VPN provider's WebRTC leak test?
It uses the same technique: gather ICE candidates through a STUN server and list the addresses found. Compare the public IP shown here with the address your VPN shows.

Run the full browser fingerprint test.

See your combined hash across all six surfaces: canvas, WebGL, audio, WebRTC, Client Hints and User-Agent.

Open the browser fingerprint test →