Is Your VPN Leaking? IP, DNS & WebRTC Leak Tests
A VPN that says "connected" can still spill your real IP, your DNS requests, or your WebRTC address. Here are four hands-on tests to catch each leak — and how to fix them.
The little "connected" indicator on your VPN app means the tunnel to the VPN server is up. It does not guarantee that everything on your device is actually going through it. Real-world leaks are common: the OS answers a DNS query through the old ISP server, the browser asks a STUN server for your direct IP behind the VPN's back, or the connection drops for two seconds while traffic keeps flowing. This guide walks you through testing all of it, with nothing to install.
Step 0: Establish your baseline
Disconnect the VPN completely and write down your real IP address and city. You can check it here:
- What's My IP — shows your current public IP, city, and provider.
You need this baseline so you can tell, after connecting, whether what websites see is your VPN exit or your real address. (If your "real" IP is itself a corporate or school network, note the provider name instead of the city — the comparison still works.)
Test 1: IP leak
Reconnect the VPN to your chosen server, wait a few seconds, then reload What's My IP. The IP, city, and provider should now all reflect the VPN server, not your baseline. If anything still matches your baseline, you have a leak.
- IPv6 is the usual suspect. Many VPNs only tunnel IPv4. If your ISP gives you IPv6 and the VPN app doesn't handle it, sites that prefer IPv6 will see your real address. The blunt fix: disable IPv6 on the device (or in the VPN app if it offers an option) until the provider handles it.
- Reconnect and recheck. Some apps leak during the first seconds of a connection or right after a server switch. Test twice: once right after connecting, once a minute later.
Test 2: DNS leak
DNS is how your device turns domain names into IP addresses. If these queries go to your ISP's resolver instead of the VPN's, your ISP can still see every domain you visit — even though the page contents are encrypted.
To test, stay connected and run an extended DNS leak test (search for "DNS leak test" and use the extended mode — it forces many queries). Compare the detected DNS servers with your VPN provider's published resolver list. If you see your ISP's or your router's name anywhere, you're leaking.
Our DNS Lookup tool can help you see which resolvers answer your queries in the open (it queries public DoH endpoints), but for a true leak test use a dedicated leak-test page, since it reveals which servers your machine actually used.
Fixes, from easiest to strongest:
- Turn on DNS-over-HTTPS in your browser settings (Firefox and Chrome both have it) — this encrypts DNS and routes it to the provider you choose, independent of the OS.
- In the VPN app, set it to use the provider's own DNS servers and enable the kill switch (more on that in Test 4).
- As a belt-and-suspenders measure, our public DNS guide shows how to set 1.1.1.1 / 8.8.8.8 at the OS level — but note that with a healthy VPN this is redundant; the VPN's own resolvers are the better default.
Test 3: WebRTC leak
WebRTC is the browser technology behind video calls. To punch through NAT, browsers ask STUN servers "what's my public IP?" — and that answer can be your real IP, handed to any website running a few lines of JavaScript, VPN or not.
To check, open chrome://webrtc-internals (Chrome/Edge) or about:webrtc (Firefox) while connected, or use any "WebRTC leak test" page. If your real public or local IP appears anywhere, it's leaking.
Fixes:
- Firefox: open
about:configand setmedia.peerconnection.enabledtofalse. This fully disables WebRTC (video calls in the browser stop working, which is fine if you don't use them). - Chrome/Edge: there's no built-in toggle; install uBlock Origin and enable "Prevent WebRTC from leaking local IP addresses" in its settings. This stops the local-IP variant, which is the most common leak in practice.
- Browser extensions marketed as "WebRTC blockers" do the same thing — but if you already run uBlock Origin, you don't need another one.
Test 4: The kill switch
The kill switch blocks all traffic the moment the VPN connection drops, so nothing sneaks out over your bare connection during a reconnect. Testing it is satisfyingly physical:
- Connect the VPN and start a long-running transfer — a big file download, a ping loop, a video stream.
- Force the tunnel to die: block the VPN app in your firewall, yank the network cable, or kill the VPN process.
- Watch the transfer. With a working kill switch it should stall or fail cleanly. If it keeps flowing over your real IP (recheck What's My IP), the kill switch is missing or misconfigured — fix it in the VPN app's settings before trusting the setup.
The 5-minute recheck routine
Run the full set once after setup, then repeat the quick version after every VPN app update, every server/location change, and every network change (new router, travel, new device). Leaks usually appear when something in the chain changes, not on day one.
1. Disconnect VPN → note baseline IP (tools/my-ip)
2. Connect VPN → IP + city must differ from baseline
3. DNS leak test → only your VPN provider's servers
4. WebRTC check → no real public or local IP visible
5. Kill switch → traffic stalls when the tunnel dies
FAQ
Does a VPN hide me completely?
No. A VPN encrypts traffic to its server and replaces your visible IP, but DNS queries, WebRTC, IPv6, or a dropped connection can still expose your real address. It also does nothing against tracking cookies, browser fingerprinting, phishing, or malware. Treat a VPN as one layer, not a cloak of invisibility.
How do I know if my VPN is leaking DNS?
While connected, run an extended DNS leak test. If the detected DNS servers belong to your ISP or your home network instead of your VPN provider, you have a DNS leak. Common fixes: enable DNS-over-HTTPS in your browser, use your VPN's own DNS servers, and turn on the kill switch.
Can WebRTC leak my real IP even with a VPN connected?
Yes. Browsers ask STUN servers for their direct IP to make WebRTC calls, and those answers can reveal your real public (and local) IPs to any site. In Firefox, set media.peerconnection.enabled to false in about:config; in Chrome, use uBlock Origin's "Prevent WebRTC from leaking local IP addresses" option.
How often should I test my VPN for leaks?
Test once right after setup, then re-test after every VPN app update, server switch, or network change (new router, travel, new device). Leaks most often appear when something in the chain changes.