Browser Privacy Guide

WebRTC Leaks Explained: What They Are and How to Test for Them

WebRTC helps browsers support real-time voice, video, and peer-to-peer communication. It can also make network information available inside the browser, which is why WebRTC is worth checking when evaluating your online privacy or testing a VPN.

The quick answer

A WebRTC leak generally refers to network information exposed through browser WebRTC functionality that reveals more than a user expects, particularly when a VPN or other privacy service is supposed to be masking the user's normal public IP address.

You can inspect what your browser exposes by using the iSeeMyIP WebRTC Leak Test.

What is WebRTC?

WebRTC stands for Web Real-Time Communication. It is a collection of browser technologies that allows websites and web applications to support real-time communication.

WebRTC can be used for features such as video calls, voice calls, screen sharing, conferencing, and peer-to-peer data communication.

Modern browsers can provide these capabilities without requiring the traditional browser plug-ins that were once commonly used for similar features.

Why does WebRTC need network information?

Real-time communication often requires two devices to determine how they can establish a usable network path between each other. That process can involve gathering connection candidates that describe possible network routes.

WebRTC uses a framework known as ICE, or Interactive Connectivity Establishment, to help discover and evaluate possible connection paths.

Depending on the browser and network configuration, those candidates can contain different forms of network information.

What is a WebRTC leak?

The term "WebRTC leak" is commonly used when WebRTC exposes IP or network information that a user did not expect a website to be able to discover.

This is especially relevant for VPN users. A VPN normally causes websites to see the VPN server's public IP address instead of the public address assigned directly to the user's normal internet connection.

If WebRTC exposes network information that undermines that expectation, it may be described as a WebRTC privacy leak.

Does WebRTC always reveal your public IP address?

No. WebRTC behavior varies between browsers, browser versions, operating systems, networks, VPN configurations, and privacy settings.

Modern browsers have introduced privacy protections that can reduce the amount of directly useful local network information exposed to websites.

This means a WebRTC test may show different results on different devices even when they are connected to the same internet service.

What are WebRTC ICE candidates?

ICE candidates describe possible ways that a WebRTC connection could communicate with another endpoint.

A browser can gather different candidate types depending on the network environment and the services being used to establish the connection.

When running a WebRTC test, these candidates are useful because they can show what network information the browser makes available during the connection-discovery process.

What is a STUN server?

STUN stands for Session Traversal Utilities for NAT. A STUN server can help a device determine how it appears from outside its local network.

This is useful because many devices connect to the internet through routers and other systems that use network address translation, commonly called NAT.

During WebRTC connection setup, STUN can help produce a candidate representing a network path that may be usable for communication.

What information should you look for in a WebRTC test?

The most important question is whether the network information exposed through WebRTC matches what you expect from your current connection.

If you are not using a VPN, WebRTC information associated with your normal connection may not be surprising.

If you are using a VPN, pay particular attention to whether the test exposes a public IP address associated with your normal internet connection rather than the VPN.

How to test your browser for WebRTC exposure

Testing your browser is straightforward. Open the iSeeMyIP WebRTC Leak Test and allow the test to inspect the WebRTC network information your browser makes available.

Compare the information shown by the WebRTC test with the public IP address displayed on the iSeeMyIP homepage.

The results can help you understand whether WebRTC is exposing additional network information beyond the public address you expected websites to see.

What we found when we tested our own browsers

We ran our WebRTC Leak Test in Google Chrome and Microsoft Edge on a Windows PC connected to our home Starlink internet, with no VPN. The first run taught us something about our own tool.

First attempt: only .local names

The original version of our test showed just two entries, both random names ending in .local, and no IP addresses at all. That looked reassuring, but it was misleading. The test was not using a STUN server, the service a browser contacts to learn its own public address. Without one, WebRTC only reports local candidates, and modern browsers hide those behind random .local names. A test built that way can never show a public IP, so it could never catch a real leak.

After adding STUN: our real public addresses

We updated the test to use public STUN servers from Google and Cloudflare, the same way video-calling apps work. Both browsers then showed the same result:

What WebRTC exposedChromeEdge
Public IPv498.97.x.x98.97.x.x
Public IPv62605:59c8:…2605:59c8:…
Local addressesTwo random .local namesTwo random .local names

We masked part of each address. The public addresses matched the ones shown by our IPv6 Test on the same connection.

Here is how we read those results:

  • The public addresses are not a leak for us. Without a VPN, these are the same addresses every website already sees. WebRTC revealed nothing new.
  • On a VPN, this is exactly what to check. If you connect to a VPN and the Public IP Addresses section still shows your normal provider's address instead of the VPN's, WebRTC is leaking it. Pay special attention to IPv6, because some VPNs only protect IPv4.
  • The .local names are a privacy feature. Instead of revealing our PC's local network addresses, both browsers replaced them with random names that change every time the test runs. Each test showed new ones.
  • Chrome and Edge behaved the same. That is expected, since Edge is built on the same Chromium engine as Chrome. Browsers built on other engines, such as Firefox and Safari, can handle WebRTC differently.

Checking another WebRTC test? Look for public addresses.

If a WebRTC leak test never shows any public IP address, even when you are not using a VPN, it may not be using a STUN server. Run it once without a VPN first. A working test should show your normal public address. If it does not, a clean result while on a VPN does not prove much.

How to test WebRTC while using a VPN

If you use a VPN, testing both before and after connecting can make the results easier to understand.

  1. Disconnect from the VPN and check your normal public IP address.
  2. Connect to your VPN and wait for the connection to finish.
  3. Check your public IP address again and confirm that it changed to the VPN connection.
  4. Run the WebRTC Leak Test while the VPN remains connected.
  5. Review whether WebRTC exposes a public address associated with your normal internet connection.

For a more complete VPN check, follow our guide to checking whether your VPN is working.

What if WebRTC shows the same IP as your VPN?

If the public network information exposed through WebRTC is consistent with the VPN connection you expect to be using, that is generally a better result than seeing the public IP address of your normal internet connection.

However, no single browser test can prove complete anonymity or guarantee that every application on a device is using the VPN. A WebRTC test examines a particular browser-related privacy concern.

What if WebRTC exposes your normal public IP?

If you are connected to a VPN but WebRTC exposes the public IP address associated with your normal internet connection, review your VPN and browser configuration.

Try reconnecting the VPN, selecting another VPN server, updating your VPN application, and checking whether the provider offers settings designed to prevent WebRTC or browser-related IP exposure.

Browser privacy settings and extensions can also affect WebRTC behavior, although changing or disabling WebRTC features may interfere with websites that rely on real-time communication.

Does disabling WebRTC improve privacy?

Restricting WebRTC can reduce certain forms of WebRTC-related network exposure, but completely disabling it is not always necessary and can break useful browser features.

Video calling, browser-based voice services, conferencing, and other applications may depend on WebRTC.

For many users, the practical goal is not necessarily to disable WebRTC but to confirm that their browser and VPN handle WebRTC in a way that matches their privacy expectations.

Is a local IP address the same as your public IP?

No. A local or private IP address is used inside a local network, while a public IP address is used for communication across the internet.

On a typical home network, your laptop or phone may have a local address while the router uses a public address when communicating with the wider internet.

Modern browsers may obscure some local address information as part of their privacy protections, so the exact information visible through WebRTC depends on the browser and configuration.

Can WebRTC reveal your exact physical location?

An IP address exposed through WebRTC does not normally provide a precise GPS location or exact street address by itself.

Public IP addresses can often be associated with approximate geographic and network information, but IP geolocation has important limitations.

For more detail, read What Can Someone Learn From Your IP Address?

Does IPv6 matter for WebRTC testing?

It can. A connection may support IPv4, IPv6, or both, and a VPN may handle the two protocols differently depending on its configuration.

When checking a VPN or WebRTC configuration, it is useful to know which IP version your connection is using. You can check with the iSeeMyIP IPv6 Test.

You can also read our IPv4 vs. IPv6 guide for an explanation of the two protocols.

Does a clean WebRTC test make you anonymous?

No. WebRTC is only one part of browser and internet privacy.

Websites can use other information such as cookies, account logins, browser storage, browser characteristics, and application data independently of WebRTC.

You can inspect some of the information your browser provides to websites with the Browser Information tool.

WebRTC privacy checklist

If you are checking WebRTC as part of a privacy or VPN test, use this simple checklist:

  • Know the public IP address you expect websites to see.
  • If using a VPN, confirm that your public IP changes after connecting.
  • Run a WebRTC test while the VPN is connected.
  • Review the network information exposed by the browser.
  • Check whether your normal public IP appears unexpectedly.
  • If necessary, review your VPN and browser privacy settings.
  • Retest after making changes to confirm the result.

Keep reading

Continue with a related guide, or try the free tools below to check your own connection.