- A VPN can look connected while still exposing your real IP address, DNS requests, or IPv6 traffic.
- Test for four leak types: IP, DNS, WebRTC, and IPv6, and test the kill switch separately.
- Run leak tests when you first set up, after app or system updates, and whenever you change networks or settings.
- Most leaks can be fixed with app settings, browser changes, or by disabling IPv6.
- Leak tests check your configuration at one moment. They do not prove a provider’s privacy claims.
The whole point of a VPN is to hide your real network identity. A leak is any situation where that hiding fails: your real address, your DNS lookups, or your actual location slips out around the tunnel. These failures are usually silent, because the VPN app still shows a reassuring green status. The only way to know is to test.
01The four common leak types
IP leaks
An IP leak occurs when some or all of your traffic leaves your device without passing through the VPN tunnel. It may happen if the VPN disconnects without a kill switch, if an app is excluded through split tunneling, or if a misconfigured routing rule sends certain traffic around the VPN.
DNS leaks
Before your device connects to a website, it translates the domain name into an IP address using DNS. If those requests go to your internet provider’s resolver instead of the VPN’s, then your provider can still see which sites you visit, even though the actual traffic is encrypted. This is one of the most common leaks and often arises from operating system behavior that tries multiple DNS servers at once.
WebRTC leaks
WebRTC is a browser technology for real-time communication such as video calls. To establish connections, it can discover and share local and public IP addresses, and in some configurations it reveals your real address even when a VPN is active. Browsers have improved their defaults, but WebRTC remains worth testing.
IPv6 leaks
Many networks support both IPv4 and IPv6. If a VPN tunnels only IPv4 traffic while your device also has IPv6 connectivity, requests over IPv6 may travel outside the tunnel and expose your real address. Quality VPN apps block or tunnel IPv6, but not every configuration does.
02Before you test: set up properly
To get meaningful results, first find out what the leak looks like without a VPN, then compare. Visit a leak-test site while disconnected and note your real public IP address, your internet provider, and the DNS servers shown. Those are the values that should not appear once you connect.
With the VPN off, note your public IP address, location, and DNS resolver shown by a leak-test site.
Choose a server in a different country so changes are easy to spot.
Fresh sessions avoid cached results from before the VPN was active.
Some privacy extensions change WebRTC or DNS behavior and can mask or complicate results.
Use at least two reputable leak-test sites and compare results.
03How to test each leak
Test 1: IP address
Connect to the VPN and visit a site that shows your public IP address. The address and location should match the VPN server, not your real details. If you see your real address, stop and investigate before continuing.
Test 2: DNS
Use a DNS leak test that queries multiple random hostnames and shows which resolvers answered. The servers listed should belong to your VPN provider or a resolver the provider specifies. If you see your internet provider’s name, you have a DNS leak.
Test 3: WebRTC
Visit a WebRTC leak test in your browser while connected. It should show the VPN’s IP address, or no public IP at all. If your real address appears, adjust browser settings or install a trusted extension that controls WebRTC, and retest.
Test 4: IPv6
Use an IPv6 test site while connected. If it reports an address that belongs to your internet provider, IPv6 is leaking. Solutions include enabling the VPN app’s IPv6 protection setting, or disabling IPv6 on your network adapter if the app lacks support.
04Testing the kill switch
A kill switch blocks internet traffic if the VPN connection drops, preventing your real address from being exposed during an interruption. Because it only matters when something goes wrong, it is rarely tested, and it is where many failures hide.
Test it on a device you own by connecting to the VPN, starting a continuous ping to a reliable host, and then deliberately interrupting the VPN. You can disable the network adapter briefly, switch Wi-Fi networks, or simulate a drop. With a working kill switch, the pings should fail until the VPN reconnects, rather than continuing over your normal connection.
05Fixing common leaks
| Symptom | Likely cause | Possible fix |
|---|---|---|
| Real IP visible in IP test | VPN not routing all traffic, or split tunneling exclusion | Review split tunneling settings, update the app, or reconnect |
| ISP shown in DNS test | System sending DNS outside the tunnel | Enable the app’s DNS leak protection or set DNS manually to the provider’s resolvers |
| Real IP in WebRTC test | Browser exposing local and public addresses | Adjust browser WebRTC settings or use a trusted control extension |
| IPv6 address from ISP | VPN handling only IPv4 | Enable IPv6 protection in the app or disable IPv6 on the adapter |
| Traffic continues after VPN drops | Kill switch not enabled or not working | Enable the kill switch, use the system-level option if offered, and retest |
- Retest after changing any network or app setting.
- Use the system-level kill switch when the app offers one.
- Keep the VPN app, operating system, and browser updated.
- Compare results across at least two testing tools.
- Assume a green connected indicator means everything is protected.
- Rely on a single leak-test result from one website.
- Ignore IPv6 because you do not use it knowingly.
- Install random extensions to fix WebRTC without checking their reputation.
06What leak tests can and cannot tell you
Leak tests are valuable, but they have limits. They verify that your configuration is routing traffic correctly at a specific moment, on a specific device and network. They do not tell you whether a VPN provider keeps logs, how it handles legal requests, or whether its servers are secure. For those questions, look to independent audits, jurisdiction, and the provider’s transparency.
They also cannot reveal everything that identifies you online. Browser fingerprinting, cookies, and logged-in accounts can all link activity to you regardless of how clean your leak tests look. Think of a leak test as checking that the door is locked, not as proof that the house is invisible.
- ✓Real IP, location, and DNS recorded before connecting
- ✓IP test shows the VPN server’s address
- ✓DNS test lists only the VPN’s or chosen resolvers
- ✓WebRTC test shows no real address
- ✓IPv6 either tunneled or blocked
- ✓Kill switch tested by interrupting the connection
- ✓Tests repeated after updates and network changes
How often should I run leak tests?
Can a VPN leak even with a kill switch?
Are online leak tests safe to use?
Do I need to worry about WebRTC if I do not make video calls?
Should I disable IPv6?
Testing guidance is provided for general educational purposes. Only test networks and devices you own or are authorized to test, and follow the terms of your VPN provider and internet service.
