NebulaVPN · Guides

How to test your VPN for IP, DNS and WebRTC leaks

Updated: 5 min read

A VPN only protects the traffic that actually goes through it. If some of your requests slip out through your normal connection, the websites you visit, or your internet provider, can still see your real IP address or the sites you look up. That is called a leak. The good news: checking for leaks takes five minutes, and fixing them is usually one setting. This guide shows you how.

The four kinds of leaks

Before you start: write down your real IP

Turn the VPN off and open a site that shows your IP address, such as ipleak.net or browserleaks.com/ip. Note the IPv4 address, the IPv6 address if you have one, and the provider name it shows. You need these to recognize a leak later.

Test 1: IP address

  1. Turn the VPN on and wait until it says connected.
  2. Reload the same IP page.
  3. The address and the provider name should now be the VPN server's, and the country should be the server's country.

If you still see your real IP, the VPN is not routing your traffic at all. Common causes: the app is connected but "split tunneling" excludes your browser, or the config only routes some address ranges. Look for the AllowedIPs line in a WireGuard config: for a full tunnel it should be 0.0.0.0/0, ::/0. Our config file guide explains that line.

Test 2: DNS

  1. With the VPN on, open dnsleaktest.com and run the extended test, or use the DNS section of ipleak.net or browserleaks.com/dns.
  2. The test makes your device look up many random names and lists which DNS servers answered.
  3. Every server in the list should belong to the VPN provider or to the public DNS service it uses (for example Cloudflare or Google). None should belong to your home or mobile internet provider.

If your internet provider shows up, you have a DNS leak. Fixes, in order of how often they help:

Test 3: IPv6

If your real connection has an IPv6 address, look at the IPv6 result on the IP test page while the VPN is on. There are two good outcomes: an IPv6 address belonging to the VPN, or "no IPv6 detected". The bad outcome is seeing your own real IPv6 address.

The fix is to route IPv6 into the tunnel too, by including ::/0 in AllowedIPs. Even if the VPN server does not give you IPv6 internet, routing ::/0 into the tunnel means IPv6 traffic is dropped instead of leaking out. Your apps then simply fall back to IPv4.

Test 4: WebRTC

  1. Open browserleaks.com/webrtc with the VPN on.
  2. Look at the "public IP" lines. They should show the VPN's address, not your real one. A local address like 192.168.x.x or a random .local name is normal and harmless.

With a system-wide VPN such as WireGuard, WebRTC usually goes through the tunnel like everything else, so this test normally passes. WebRTC leaks are mostly a problem with browser-extension "VPNs", which are really proxies that only cover part of the browser's traffic.

The kill switch: protection when the tunnel drops

All the tests above check a working connection. The other moment leaks happen is when the VPN disconnects, for example while your phone switches networks or when the server is unreachable. A kill switch blocks all internet traffic until the VPN is back.

A kill switch has a cost: if the VPN cannot connect, you have no internet at all until you turn it off. That is the point, but remember it when you troubleshoot.

Things a leak test cannot tell you

Quick checklist

  1. IP page shows the VPN's address and country.
  2. DNS test shows no server from your own internet provider.
  3. IPv6 shows the VPN's address or nothing.
  4. WebRTC public IP is the VPN's.
  5. Kill switch is on where your device supports it.

Run the checklist again after you change apps, phones or networks. It takes five minutes and tells you, with evidence, that your VPN is doing its job.

More guides