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
- IP leak: a website sees your real public IP address instead of the VPN server's address.
- DNS leak: your device asks your internet provider's DNS server to translate website names into addresses, even though the rest of the traffic goes through the VPN. Your provider then sees every site name you visit.
- IPv6 leak: the VPN only tunnels IPv4, but your network also has IPv6. Sites that support IPv6 are reached directly, outside the tunnel.
- WebRTC leak: browsers use WebRTC for video calls, and it can reveal your local and public addresses to a web page through a separate path.
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
- Turn the VPN on and wait until it says connected.
- Reload the same IP page.
- 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
- With the VPN on, open
dnsleaktest.comand run the extended test, or use the DNS section ofipleak.netorbrowserleaks.com/dns. - The test makes your device look up many random names and lists which DNS servers answered.
- 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:
- Make sure the config has a
DNS =line. Without it, your device keeps using the DNS server it got from your Wi-Fi or mobile network. - On Windows, use the official WireGuard or AmneziaWG app rather than a third-party client; they set DNS for the tunnel properly.
- In your browser, check "Secure DNS" or "DNS over HTTPS" settings. If the browser is set to use a specific provider, it sends DNS queries there directly. That is encrypted and not your ISP, but it is outside the VPN's control.
- On Android, the "Private DNS" setting can override the VPN's DNS. Set it to "Automatic" or "Off" if the test shows an unexpected server.
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
- Open
browserleaks.com/webrtcwith the VPN on. - Look at the "public IP" lines. They should show the VPN's address, not your real one. A local address like
192.168.x.xor a random.localname 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.
- Android: Settings, Network and internet, VPN, tap the gear next to your VPN app, then turn on "Always-on VPN" and "Block connections without VPN". This works with the WireGuard, AmneziaWG and AmneziaVPN apps.
- Windows: in the WireGuard or AmneziaWG app, edit the tunnel. When
AllowedIPscovers everything, a checkbox "Block untunneled traffic (kill-switch)" appears. Tick it. - iPhone and Mac: in the WireGuard-family apps, "On-Demand" can reconnect automatically on chosen networks. iOS does not offer a full system kill switch to ordinary apps, so keep On-Demand enabled if leaks during reconnects matter to you.
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
- Logged-in accounts still know who you are. A VPN changes your IP, not your Google or Instagram login.
- Browser fingerprinting (screen size, fonts, time zone) can still identify a browser across sites.
- Time zone and language settings can show that you are not where your IP says. Some banking and streaming services check this. See static vs shared VPN IPs for how services judge an IP.
Quick checklist
- IP page shows the VPN's address and country.
- DNS test shows no server from your own internet provider.
- IPv6 shows the VPN's address or nothing.
- WebRTC public IP is the VPN's.
- 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.