A VPN can show "connected" while some traffic still takes the ordinary route. The four usual suspects are your IPv4 address, DNS lookups, IPv6 and the browser's WebRTC feature. Each can be tested in a few minutes.
A leak test is a comparison. With the VPN off, note your public IPv4 address, IPv6 address if you have one, and the DNS servers a test site reports. Then connect and repeat. Anything from the first list that still appears is a leak.
In a terminal (on Windows type curl.exe instead of curl):
curl -4 https://api.ipify.org
curl -6 https://api6.ipify.orgThe first shows your public IPv4 address. The second shows IPv6, and failing is normal if you have no IPv6 connection. These requests go to a third-party service, which will see your address; that is the point of the test. Browser-based test pages such as ipleak.net, dnsleaktest.com and browserleaks.com show similar information.
DNS turns names into addresses. If lookups still go to your internet provider's resolver, it learns which domains you visit even though the connections themselves go through the tunnel. In the test results, you should see the resolver you expect, not your provider's.
Check which resolvers the system uses. Windows PowerShell:
Get-DnsClientServerAddress
Resolve-DnsName example.comLinux with systemd-resolved:
resolvectl statusA stricter Linux test watches the physical interface while you browse. Replace eth0 with your interface name (see ip link):
sudo tcpdump -ni eth0 port 53With a full tunnel, you should see no ordinary DNS queries from your machine to the internet here. Queries to your router are a leak too, because the router passes them on.
Fixes: set a DNS server in the VPN configuration (in WireGuard, a DNS = line under [Interface]) and make sure that server is reached through the tunnel. On Linux, wg-quick applies this line using resolvconf, so that tool must be available. On Windows, which can send lookups over several adapters, the Group Policy setting "Turn off smart multi-homed name resolution" (under Network, DNS Client) can help if your VPN client does not already block other DNS traffic.
Browsers can also use their own encrypted DNS (DNS over HTTPS). A test then shows the browser's resolver instead of the VPN's. That is not your provider seeing your lookups, but it is another company seeing them. Review the DNS over HTTPS setting in Firefox, or "Use secure DNS" in Chrome.
This is the one many people miss. A VPN configured only for IPv4 leaves IPv6 on the normal route, and many sites prefer IPv6 when it is available. If curl -6 or a test page shows your own provider's IPv6 address while connected, you have a leak.
Fixes, best first:
AllowedIPs = 0.0.0.0/0, ::/0 and give the interface a private IPv6 address. IPv6 connections then fail instead of going around, and most programs fall back to IPv4.Turning IPv6 off for the whole system works but is a blunt tool and easy to forget. Test again after any change, and again on mobile data, since networks differ.
WebRTC powers browser calls. To find a direct path, it collects candidate network addresses, and a web page can read them. Modern browsers often replace local addresses with random .local names, but a public address learned from a STUN server can still appear. With split tunnelling or several interfaces, that may be your real one.
Run a WebRTC test page with the VPN on. Seeing the VPN's address is fine. Seeing your provider's public IPv4 or IPv6 address is a leak.
Firefox: in about:config, setting media.peerconnection.ice.default_address_only to true limits candidates to the default route. Setting media.peerconnection.enabled to false turns WebRTC off, which breaks most browser calls and meetings.
Chrome and Chromium-based browsers: the WebRtcIPHandling policy accepts values such as default_public_interface_only or the stricter disable_non_proxied_udp. The strict one can degrade or break calls.
A single test on a calm connection misses a lot. Repeat after:
If traffic continues normally when the tunnel drops, you need a kill switch. Remember what a clean result means: your tested traffic used the tunnel. It does not stop sites recognising you by cookies or logins.
| Symptom | Likely cause |
|---|---|
| Old IPv4 address shown | Not connected, or the route is not a full tunnel |
| Provider's DNS shown | No DNS set in the VPN, or an app overrides it |
| Provider's IPv6 shown | IPv6 not routed into the tunnel |
| Leak only in one browser | WebRTC, browser DNS, or an extension or proxy setting |
If you run the VPN yourself, follow WireGuard on a VPS and run these checks after setup. With our VPS plans you get root access to configure DNS and IPv6 yourself, so ask support about IPv6 before ordering if you need it, and use the server within the acceptable use policy.
Is it a leak if the DNS test shows a public resolver, not my VPN provider?
Not necessarily. It may be the resolver your VPN or browser is set to use. It is a problem if you see your internet provider's resolver or one you did not expect.
Do I have an IPv6 leak if the IPv6 test fails completely?
No. A failed IPv6 request means no IPv6 path was found, so nothing was exposed over it in that test.
Should I disable WebRTC entirely?
Only if you do not use browser calls or screen sharing. Restricting which addresses it can use is often enough.
How often should I test?
After setup, after major updates or configuration changes, and when you start using a new network.