Back to blog

How to Check If Your VPN Is Actually Working (IP and DNS Leak Testing)

September 27, 2026 3 min read

A green "Connected" light in your VPN app tells you the tunnel came up. It doesn't tell you whether your real IP address, or your DNS queries, are still slipping out around it. Both leaks are common, both are invisible without checking, and both take about two minutes to test for.

Why "connected" doesn't mean "protected"

A VPN app reports success the moment it establishes a session with the server — that's a statement about the tunnel, not about what's actually flowing through it. Two separate things can go wrong even with a technically successful connection:

  • An IP leak, where some of your traffic bypasses the tunnel entirely and reaches the internet using your real address.
  • A DNS leak, where the tunnel itself works, but your device keeps sending DNS lookups — which website names you're resolving — to a server outside the tunnel, usually your ISP's.

Either one quietly defeats the point of running a VPN at all.

Testing for an IP leak

  1. Before connecting, visit a site that shows your public IP (searching "what is my IP" works, or use a dedicated checker) and note the address.
  2. Connect your VPN.
  3. Check the same site again. The address shown should now be your VPN server's IP, not your original one.
  4. Repeat after resuming from sleep, switching Wi-Fi networks, and waking your phone — the exact moments a leak is most likely, because the OS may briefly send traffic before the VPN reconnects.

If the address doesn't change on connect, or reverts to your real one during any of those transitions, that's an IP leak.

Testing for a DNS leak

  1. Connect your VPN.
  2. Visit a DNS leak test site (search "DNS leak test" — several free ones exist and work the same way).
  3. Run the extended or standard test. It shows which DNS servers actually handled your lookups.
  4. Compare the results. You should see your VPN server's DNS resolver, or a public one you explicitly configured — not your home router's address or your ISP's own DNS servers.

Seeing your ISP's DNS servers here means your device is still asking them to look up domain names, even though the rest of your traffic is tunneled — the exact bug covered in common self-hosted VPN mistakes: a client with no DNS server set in its config falls back to whatever it used before connecting.

Fixing what you find

DNS leak: check your VPN client's config for a DNS line pointing at a real resolver. If it's missing or blank, that's the fix — add one (Nullsify's generated configs include this automatically, so if you're seeing a leak on one of ours, re-import the current config from your dashboard rather than an older saved copy).

IP leak: this usually means traffic is escaping the tunnel during a brief gap — often while reconnecting after sleep or a network switch. A kill switch closes exactly this gap by blocking all traffic whenever the tunnel isn't up, rather than quietly falling back to your normal connection.

Test after any change, not just once

Re-run both tests after switching VPN protocols, updating your client app, or changing networks — a leak that wasn't there yesterday can appear after any of those, and the only way to know is to check again, not to assume the last successful test still holds.

Why this matters more on your own server

With a commercial VPN, a leak exposes your traffic to your ISP — bad, but the VPN provider was already going to see everything anyway. With a self-hosted VPN, the entire point is that nobody but you sees your traffic; a silent leak defeats that goal completely without any visible sign. Nullsify sets DNS correctly in every generated config specifically to avoid the most common version of this — but it's still worth the two-minute check on any device.

Ready to run your own VPN?

Bring your own VPS and have VLESS, AmneziaWG, or WireGuard running in minutes — no manual setup required.