How to Test Your VPN for IP, IPv6, DNS and WebRTC Leaks
A VPN's app showing "Connected" tells you the tunnel is up. It does not tell you that all of your traffic is using it. A leak test takes five minutes, needs nothing but a browser, and is worth repeating whenever you change VPN provider, app version or network.
What a leak is
A VPN is supposed to send all of your traffic through an encrypted tunnel to the VPN's server, so websites see the server's address instead of yours, and your internet provider sees only encrypted traffic to the VPN. A leak is any traffic that bypasses the tunnel, or any way a site can still learn your real address. There are four common kinds.
| Leak | What escapes | Typical cause |
|---|---|---|
| IPv4 | Your real public IPv4 address | The tunnel dropped and the app has no kill switch, or split tunnelling excludes the browser |
| IPv6 | Your real IPv6 address | The VPN only tunnels IPv4, and your device happily uses your provider's IPv6 for sites that support it |
| DNS | The names of the sites you visit, sent to your provider's resolver | The operating system keeps using the network's DNS servers instead of the VPN's |
| WebRTC | Addresses your browser reveals to a page through its real-time communication features | The browser gathers network candidates from interfaces outside the tunnel |
Step 1: record a baseline with the VPN off
Disconnect the VPN and open the GotInfo home page. Write down:
- Your IPv4 address and, if shown, your IPv6 address.
- The ISP or organization, and the ASN.
- The approximate location.
- The addresses listed in the WebRTC part of the Information for Nerds section.
This is what the internet sees without protection. Every check below compares against it.
Step 2: connect and reload
Connect the VPN, wait until it reports connected, and reload the page in a fresh tab. Check each item against your baseline.
- IPv4 address. It should be different, and the ISP and ASN should now belong to the VPN provider or the hosting company it rents servers from. If you still see your home provider, traffic is not going through the tunnel. Check split tunnelling settings and whether the browser has its own proxy configured.
- IPv6 address. There are two good outcomes: an IPv6 address belonging to the VPN, or no IPv6 address at all (shown as unavailable). The bad outcome is your baseline IPv6 address, or any address with the same first four groups (the same /64 prefix from your provider). That is an IPv6 leak. The IPv4 vs IPv6 guide explains how to read the prefix.
- Location. It should match the VPN server's region, roughly. Geolocation databases lag behind, so a VPN server can appear in the wrong city or country. That is a database issue, not a leak, as long as the ASN is the VPN's.
- WebRTC addresses. If your real public IPv4 or IPv6 address from step 1 appears here while the VPN is connected, that is a WebRTC leak. Private addresses such as
192.168.x.x, or random names ending in.local, reveal far less: modern browsers hide local addresses behind such names by default.
Step 3: test DNS
GotInfo does not run a DNS leak test, because detecting your resolver requires a dedicated DNS server that sees the lookups. Dedicated DNS leak test sites work by making your browser look up random, unique names under a domain they control, then reporting which resolvers asked for them. Run one with the VPN connected:
- Good: the resolvers belong to your VPN provider, or to a public DNS service you chose deliberately, and the requests arrive through the VPN.
- Leak: the resolvers belong to your home ISP or mobile carrier. Your provider can then see every site name you look up, even though the content is encrypted.
Browsers that use encrypted DNS (DNS over HTTPS) send lookups to their configured provider regardless of the operating system's settings. That is not a leak to your ISP, but it does mean a third party sees your lookups, so check which provider is set.
Step 4: test failure
Leaks often happen not while the VPN is working, but in the seconds after it drops: when you switch Wi-Fi networks, when a laptop wakes from sleep, or when the server goes away. To test the kill switch:
- Enable the app's kill switch or "block connections without VPN" setting.
- Start a continuous ping in a terminal (
ping -t 1.1.1.1on Windows,ping 1.1.1.1elsewhere) or keep reloading GotInfo. - Force a disconnect: switch networks, toggle Wi-Fi off and on, or block the VPN server's address briefly in your firewall.
- With a working kill switch, traffic stops entirely until the tunnel is back. If pings continue or GotInfo shows your home address during the gap, the kill switch is not protecting you.
On Android, the system VPN settings include "Always-on VPN" and "Block connections without VPN" options, which are more reliable than an app's own switch. On other platforms, rely on the VPN app's kill switch and repeat this test after app updates.
Fixing what you find
- IPv6 leak: turn on the VPN app's IPv6 leak protection, choose a provider that tunnels IPv6, or as a fallback disable IPv6 on the network adapter while you use the VPN.
- DNS leak: enable the app's DNS leak protection or "use VPN DNS" option. On Windows, some leaks come from the system sending lookups to every adapter at once; current VPN apps usually handle this when their protection is enabled.
- WebRTC leak: keep the browser up to date. Firefox lets you turn off
media.peerconnection.enabledinabout:config, which disables WebRTC entirely and breaks browser-based calls. Chromium-based browsers can limit WebRTC to the proxied route with a policy or a reputable extension. - Traffic bypassing the VPN: review split tunnelling rules and any "allow LAN" or app-exclusion settings.
What a VPN does not hide
A clean leak test shows that your network address is hidden. It says nothing about the other ways sites recognize returning visitors: logged-in accounts, cookies, and the browser itself. Your screen size, fonts, graphics hardware and settings are the same with or without a VPN, and together they can form a stable browser fingerprint. Run the fingerprint test with the VPN on and off: most of the signals stay exactly the same. Also remember that the VPN provider itself can see where your traffic comes from and where it goes, so you are moving trust from your ISP to the VPN company rather than removing it.
Run the IP, IPv6 and WebRTC checks now: open GotInfo with your VPN off, then on, and compare.