# WebRTC Leak Test

> The WebRTC Leak Test asks your browser for its WebRTC network candidates through a public STUN server and lists every IP address it reveals, so you can see whether your real public IP leaks past your VPN.

URL: https://atechcraft.com/webrtc-leak-test/
Category: Network Tools
Last updated: 2026-12-01
Author: Abdul Moid Khan, ATechCraft

Runs in your browser. Your data never leaves your device.

## How to use the WebRTC Leak Test

1. Connect to your VPN if you use one.
2. Press “Start WebRTC leak test”.
3. Compare any public address shown with your VPN server’s address.
4. If your real IP appears, enable WebRTC leak protection and test again.

## What is a WebRTC leak test?

A WebRTC leak test checks whether your web browser reveals your IP addresses through **WebRTC**, the technology browsers use for video calls, voice chat and peer-to-peer file transfer. If you use a VPN to hide your location, a WebRTC leak can expose your real public IP address to any website you visit, even while the VPN is connected. This test shows exactly which addresses your browser gives away.

## How does WebRTC reveal IP addresses?

To connect two browsers directly, WebRTC uses a process called **ICE** (Interactive Connectivity Establishment, [RFC 8445](https://www.rfc-editor.org/rfc/rfc8445)). The browser collects "candidates": network addresses where it might be reachable.

| Candidate type | What it is | Where it comes from |
| --- | --- | --- |
| host | An address on your own device or local network | Your network adapters |
| srflx (server reflexive) | Your public address as seen from the internet | A **STUN** server's reply |
| relay | An address on a relay (TURN) server | Only if a TURN server is configured |

A website can create a connection object, ask for candidates and read them with JavaScript. No permission prompt appears, because no camera or microphone is involved.

### What this test does

1. It creates an `RTCPeerConnection` that uses Google's public STUN server, `stun:stun.l.google.com:19302`.
2. It opens a data channel and creates an offer, which starts candidate gathering.
3. It reads each candidate, extracts the address and classifies it as public IPv4, public IPv6, private (local network) or a hidden mDNS name.

The STUN request is the only network call any ATechCraft tool makes to an outside server. The results appear only on your screen.

## How do I read the results?

- **Hidden local address (mDNS)**, for example `3f1c9a2e.local`: modern browsers replace your local IP with a random name. This is a privacy feature, not a leak.
- **Private IPv4** such as 192.168.x.x or 10.x.x.x: your address on your home or office network. It reveals little on its own.
- **Public IPv4 or IPv6:** an address on the internet. With a VPN on, this should be the VPN server's address.

### Worked example

You connect to a VPN server in Germany and run the test. The table shows `203.0.113.45` as a public IPv4 srflx candidate. You look up your VPN's address in its app: it is `198.51.100.20`. They do not match, and `203.0.113.45` belongs to your home internet provider. **That is a WebRTC leak.** If the only public address shown is `198.51.100.20`, or no public address appears at all, you are fine.

## How do I stop a WebRTC leak?

1. **Turn on leak protection in your VPN app.** Many VPNs have a "WebRTC leak protection" or "block non-VPN traffic" (kill switch) option.
2. **Use the VPN's browser extension** if it offers WebRTC blocking.
3. **Change browser settings.** Firefox lets you disable WebRTC in `about:config` (`media.peerconnection.enabled`). Chromium-based browsers can limit it with policies or trusted extensions.
4. **Test again** after each change.

Disabling WebRTC can break video calling sites, so prefer the VPN's own protection where possible.

## Related checks

- See your browser, operating system and other details with [What Is My Browser](https://atechcraft.com/my-browser-info/).
- Video calls use WebRTC too: test your camera with the [Webcam Test](https://atechcraft.com/webcam-test/) and your microphone with the [Mic Test](https://atechcraft.com/mic-test/).

## Limitations

- The test only checks WebRTC. It does not detect DNS leaks or other ways your IP can be exposed.
- Results depend on your browser, extensions and network. Some corporate networks block STUN entirely, which shows no public address.
- If your VPN uses IPv4 only and your provider gives you IPv6, an IPv6 leak can appear even when IPv4 is protected.

## Frequently asked questions

### What is a WebRTC leak?

WebRTC lets browsers make direct audio, video and data connections. To do that it discovers your IP addresses, and a website can read them with a few lines of JavaScript. If your VPN does not route this traffic, your real IP can be exposed.

### How do I know if my IP is leaking?

Run the test with your VPN on. If a public address appears that belongs to your internet provider rather than your VPN, you have a leak.

### What does an address ending in .local mean?

Modern browsers hide your local network address behind a random mDNS name ending in .local. That is a privacy feature, not a leak.

### How do I fix a WebRTC leak?

Turn on your VPN app’s WebRTC or leak protection, use a browser setting or a trusted extension that limits WebRTC, or use a browser that disables non-proxied UDP.

### Does this test store my IP?

No. The test runs in your browser. Google’s STUN server sees your IP to answer the request, as with any WebRTC call, but ATechCraft receives nothing.
