Skip to main content

Home › Tools › VPN kill-switch test

VPN Kill-Switch & Connection-Drop Test

A kill switch should cut your internet when the VPN drops instead of falling back to your real connection. Run this test, drop your VPN on purpose, and watch what your connection really does.

  1. Connect your VPN and make sure it is working.
  2. Press Start. The first IP address we see is treated as your VPN's address.
  3. Disconnect or interrupt your VPN (turn it off in the app, switch Wi-Fi networks, or block the VPN server).
  4. Watch the result. Blocked traffic means the kill switch held. A different IP address means your real address was exposed.

Keep this tab visible and your screen awake. Browsers slow down background tabs, which can hide short leaks. Use the sound alert, or run the test from a second device.

How this test works

This page asks our server for the IP address it sees every few seconds. Your VPN's address is the baseline. If your VPN drops and your device keeps working, the address changes to your real one and the page flags it. If the kill switch cuts traffic, the requests fail instead, which is the correct result. Nothing is stored, and the IP address is read from the connection itself.

What this cannot tell you

This checks the browser's connection only, and only while this tab is running. An app-level kill switch may protect some apps but not others, a very short leak between checks can be missed, and background tab throttling can hide events. It also does not test DNS or WebRTC leaks, so run those checks as well. Changing VPN servers deliberately also changes your IP address and will be reported as a different IP.

Want to understand VPN protection?

Compare provider profiles using official sources and independent audits.

Read provider profiles

Guide

The kill-switch test keeps one browser tab polling this site every few seconds and records the public IP address the server sees. If your VPN drops and the IP changes to a different address, it flags a possible exposure; if requests simply fail, traffic was blocked. It tests that tab's connection only, not every app, DNS or IPv6.

The problem: a VPN can fail quietly

A VPN tunnel is not permanent. Wi-Fi roams, a laptop wakes from sleep, a server restarts or a mobile connection switches between cellular and Wi-Fi. When that happens, an operating system can fall back to its normal route. Anything running at that moment then talks to the internet using your real IP address and your ISP's network path, usually without any visible warning.

A kill switch is the feature meant to prevent that. It blocks network traffic outside the VPN tunnel when the tunnel is down. Implementations differ a lot: some are firewall rules that block everything except the VPN, others only close specific apps, and some apply only to unexpected disconnects. The test on this page gives you a way to observe what your own setup does, instead of trusting a toggle in settings. The kill switch explainer covers the concept in more depth.

  • Travelers and public Wi-Fi users whose connection changes often.
  • Remote workers and journalists for whom one exposed IP address could reveal a location or an employer network.
  • Anyone who just changed VPN settings and wants to confirm the change did something.
  • People comparing apps who want to see how each one behaves when the tunnel breaks.

How the test works, step by step

  1. Step 1

    Connect your VPN first

    The page treats the first public IP address it sees as your VPN's address. If you start the test before connecting, your real address becomes the baseline and the results will be meaningless.

  2. Step 2

    Press Start

    Your browser asks the page's own server, at the /api/ip-monitor endpoint, for the IP address it received the request from. It repeats this every 2, 3, 5 or 10 seconds (3 seconds by default), with a 4-second timeout per request.

  3. Step 3

    Interrupt the VPN on purpose

    Turn the VPN off in its app, switch Wi-Fi networks, or block the VPN server. Do this while the page keeps running.

  4. Step 4

    Watch the three readouts

    The page tracks whether it can still reach the server, the current IP address, and counters for checks, blocked periods and different IP addresses seen. A log lists what happened and when.

  5. Step 5

    Stop and review

    The verdict banner summarizes the run. You can also use the "Treat this as my VPN address" link to reset the baseline, for example after deliberately switching servers.

The endpoint is intentionally light. It reads the client IP from request headers, checks a per-client and a global rate limit, and returns the address, whether it is IPv4 or IPv6, a country code if a CDN header supplies one, and a timestamp. It makes no third-party call. Responses carry no-store cache headers and a no-referrer policy.

How to read the results

What each outcome means
What you seeWhat happenedWhat it suggests
Verdict: no drop observed yetThe IP address never changed and no request failedNothing was tested yet; you have to disconnect the VPN for the test to mean anything
Verdict: traffic was blockedRequests to this page failed, and no different IP address appearedThe browser's route was cut when the VPN went down, consistent with a working kill switch
Verdict: your real IP was exposedA different IP address from the baseline was returnedThe device kept using a non-VPN route; or you switched servers deliberately
Log: connection back, same IPRequests failed for some seconds, then resumed with the baseline IPBlocked during the gap, VPN restored afterward
"No IP shown"The server received a request but could not identify a public IPA local address or unusual proxy headers; the result is not usable
What each outcome means

The counters help interpret the log. "Blocked periods" counts distinct stretches of failed requests. "Different IPs seen" counts each change to an address that is not the baseline. The page does not label which IP is your real one; you compare it yourself to what your ISP address looks like.

How to run a safe, meaningful test

  1. Close anything you do not want exposed, such as banking tabs or sensitive chats. A real leak, if one occurs, is real.
  2. Connect the VPN and confirm the connection with an IP check such as the IP address tool.
  3. Open the test page, keep the tab in the foreground and the screen awake, and press Start. Wait for the first log entry that names your baseline IP.
  4. Cause one type of interruption at a time. Good candidates are disabling the VPN from its app, toggling Wi-Fi off and on, and moving to a different network. Wait at least two poll intervals after each.
  5. Repeat with the VPN set to different protocols if your app offers several, since kill-switch behavior can differ by protocol and platform.
  6. Stop the test, and then run a DNS leak test and a WebRTC leak test separately.

Check what your VPN provider says its kill switch does. Mullvad documents a kill switch that is always on while connected, plus an optional Lockdown mode that also blocks traffic after you click Disconnect or Quit. Proton VPN distinguishes a standard kill switch, which blocks only on accidental drops, from an advanced one that allows internet access only while connected, and documents platform differences, including a brief exposure when switching servers on macOS. On Android, the system setting Always-on VPN, together with the option to block connections without VPN, is the system-level equivalent.

What the test can and cannot prove

This test watches one thing: the public IP address seen by this site's server for requests from one browser tab. That is useful and narrow. A pass does not mean your whole device is protected.

Coverage of the test
AreaCovered?Why
This browser tab's IPv4 or IPv6 routeYes, partlyThe server reports whichever address family the request used; it does not check both families at once
Other apps on the deviceNoAn app-level kill switch may close some apps and leave others running; the tab shows only its own route
DNS requestsNoResolver leaks are separate from the IP the server sees; use a DNS leak test
WebRTC address exposureNoBrowsers can reveal addresses through WebRTC regardless of this request path; use a WebRTC test
Short gaps between pollsPartlyA leak shorter than the interval can be missed, and a 10-second interval misses more
Background or sleeping tabsNoChrome documents intensive throttling of timers in background tabs after five minutes, to once per minute
Startup or boot-time leaksNoThe test begins after your VPN is already connected
Coverage of the test
  • IPv6. If your network offers IPv6 and the VPN does not handle it, the server may see an IPv6 address the VPN never touched. The page flags an address change but does not compare IPv4 and IPv6 results side by side. The IPv6 and VPN guide explains the risk.
  • Server switches look like leaks. If your VPN reconnects through a different server, the IP changes and the page counts it as a different address, which is why a "Treat this as my VPN address" reset exists.
  • Blocked is not always the kill switch. A dead Wi-Fi link produces the same failed requests.

Privacy and data handling

The browser sends each poll to this site, and the server reads your IP address from the connection. The server hashes that address with SHA-256 to build the key for the rate limiter. Rate-limit counters are kept in a distributed key-value store when one is configured, or in process memory otherwise, and they expire after the one-minute window. The page's own description says nothing is stored by the test; the rate limiter's short-lived counter keyed by a hash is the one exception that the code shows.

A third party is involved only for place names, and only at certain moments. When the page records your baseline, sees a different IP, or sees the IP return to baseline, it calls a second endpoint, /api/internet-context, to label the place. At most one such lookup runs every ten seconds. That endpoint asks the ipwho.is service, server to server, to look up the IP address; your browser does not contact it. The lookup results are shown in the log and not stored by the page.

When to use something else

  • Packet capture or firewall logs. For a rigorous answer across all apps and protocols, capture traffic at the network interface or router while you interrupt the VPN. This needs technical skill.
  • A second device or router test. Run the test page from a phone while another device's VPN drops, or watch your router's connection list.
  • Provider documentation. The provider's kill-switch page tells you which platforms, modes and exceptions apply. Start with the Mullvad kill switch documentation or Proton VPN's kill switch page as examples of detailed vendor documentation.
  • Leak tests. For DNS and WebRTC exposure, see the DNS leak guide and the WebRTC leak guide.
  • Provider reviews. See the Mullvad review for one provider's documented behavior, and the methodology page for what this site does and does not test.

Troubleshooting

  • Verdict never changes from "no drop observed." Nothing has been interrupted yet. Disconnect the VPN or switch networks while the tab stays open.
  • The baseline shows your real IP. You started before connecting. Stop the test, connect the VPN, and start again.
  • "We could not read a public IP address here." The server saw a local or private address. This happens in some local development or proxy setups; try a normal browser window and network.
  • Constant outages on a good connection. The endpoint might be rate limiting you, or the 4-second timeout may be too short on a slow link. Choose a 5- or 10-second interval.

Frequently asked questions

What does a VPN kill switch do?
A kill switch blocks internet traffic that would otherwise leave outside the VPN tunnel when the tunnel drops. How strict it is depends on the app: some block everything except the VPN, some only block on unexpected drops, and some close selected apps. Check your provider's documentation for the exact behavior on each platform.
Does this test prove my kill switch works everywhere?
No. It checks only the IP address seen for requests from one browser tab. It does not test other apps, DNS resolution, WebRTC, boot-time exposure or every IPv6 path, and short gaps between polls can be missed. Treat a pass as one data point and add separate leak tests.
Does the page send my IP address to a third party?
Sometimes. Each poll goes to this site's server. When the page sets your baseline or detects an IP change, it requests a place label from another endpoint on this site, which asks the ipwho.is lookup service for that address, at most once per ten seconds. Your browser does not contact that service directly.
Why did the test flag an exposure when I only changed servers?
Changing servers gives you a new VPN IP address, and the page counts any address that differs from the baseline as different. It cannot tell a server switch from a leak. Use the "Treat this as my VPN address" link after a deliberate switch, or re-run the test from a fresh baseline.
What does a "blocked" result really mean?
It means requests to this page failed while the VPN was down and no different IP showed up. That fits a working kill switch, but a dead Wi-Fi link looks the same. To make the result meaningful, cut only the VPN and keep the underlying network healthy, then compare with how the page behaves after reconnecting.
How often should I run this test?
Run it after installing or updating the VPN app, after changing kill-switch or protocol settings, and when you move to a new operating system or router. A single run on a given setup is a snapshot, and behavior can change with app updates, so repeat it when something important changes.

Sources

Facts on this page were last checked against the sources below on 2026-10-23. VPN Advisor does not run its own speed, streaming or leak tests; see how we work.