Networking and developer tooling notes
Troubleshooting
5 min read

Why Does My VPN Keep Disconnecting? A Troubleshooting Checklist

VPN drops almost always trace back to a short list: the network underneath changing or going idle, a NAT or firewall closing the flow, an MTU mismatch, power saving, conflicting software, or an exhausted account. Test them in that order.

Editorial team

A VPN that keeps disconnecting is almost always caused by something on a short list: the network underneath changing or going idle, a NAT or firewall closing the connection, an MTU mismatch, aggressive power saving, another program rewriting routes, or an account that has run out of data. Work through the checks below in order and note which step changes the behaviour. This article reflects common operating systems as of November 2026.

Is it the VPN, or the network underneath?

Before touching any VPN setting, find out whether the physical connection itself drops. Run a continuous ping to a public address with the VPN switched off and keep it running while you work. If you see timeouts at the moments the problem usually appears, the cause is your Wi-Fi, router or ISP, not the VPN.

# Windows (runs until Ctrl+C)
ping -t 1.1.1.1

# macOS and Linux (runs until Ctrl+C)
ping 1.1.1.1
  • Timeouts with the VPN off: fix the local network first (signal strength, router restart, cable, ISP).
  • Clean with the VPN off, drops with it on: continue with this checklist.
  • Only one application fails while the tunnel stays up: that is a routing problem, not a drop. See how TUN mode and a system proxy differ in what they capture.

Does switching networks or sleeping the device break the tunnel?

Yes. A tunnel is bound to the local address and network interface it was created on. When a laptop moves from Wi-Fi to Ethernet, a phone hops between Wi-Fi and cellular, or a device wakes from sleep on a different access point, the old endpoint no longer exists and the client has to reconnect. Clients differ in how quickly they notice, so a long pause can look like a drop.

  • Windows: in Device Manager, open the adapter's Power Management tab and clear the option that lets the computer turn the device off to save power.
  • Android: exempt the VPN app from battery optimization; the exact menu name varies by manufacturer.
  • iOS: Low Power Mode and disabled background activity can delay reconnects after the screen locks.

Why do idle connections die after a few minutes?

Home routers and carrier networks keep a NAT mapping for every flow and delete it after a period of silence. For UDP, RFC 4787 requires the mapping lifetime to be at least two minutes, and real devices often use values not far above that. If the tunnel stays quiet longer than the lifetime, replies stop arriving until new outbound traffic recreates the mapping.

The signature is distinctive: everything works while you are active, the connection is dead after you step away, and it recovers once you send something. Useful moves:

  • Look for a keepalive or protocol option in your client settings and use it if one exists.
  • Test from a different network, such as a phone hotspot. If the drops vanish, the original network's NAT or firewall is the cause.
  • Note the interval. Drops at a regular spacing point to a timeout; random drops point elsewhere.

Could MTU be the problem?

Yes, especially when the VPN connects, small requests work, and large downloads or TLS handshakes stall. A tunnel adds header overhead, so a packet that fits your link at 1500 bytes may be too big inside the tunnel. If a device on the path filters the ICMP messages that report this, packets vanish silently, a path MTU black hole (RFC 1191 describes the discovery mechanism). Probe it with don't-fragment pings while connected.

# Linux
ping -M do -s 1372 -c 4 1.1.1.1

# macOS
ping -D -s 1372 -c 4 1.1.1.1

# Windows
ping -f -l 1372 -n 4 1.1.1.1

The size is the payload; add 28 bytes of IP and ICMP headers to get the packet size. Start at 1472 (a 1500-byte packet) and lower the number until replies return. If 1372 is the largest that works, the usable MTU is 1400. Some hosts ignore ICMP, so test two or three targets. If your client exposes an MTU setting, set it slightly below the measured value; otherwise check its documentation.

Is another program fighting the VPN?

Possibly. Two VPN clients, security suites with network filtering, and tools that manage routes or DNS can all reconfigure the same adapters. The symptom is a connection that works for a few minutes and then degrades as routes or resolvers get rewritten. Quit other VPN and proxy tools, pause third-party firewalls briefly, reconnect, and inspect the routing table.

# Windows
route print -4

# macOS
netstat -rn -f inet

# Linux
ip route show

With a full-tunnel connection the default route, or a pair of more specific routes, should point at the tunnel adapter. If it flips back at the moment you lose connectivity, something else is rewriting it. Also separate DNS failures from real drops: if ping 1.1.1.1 works but ping example.com fails, the tunnel is fine and name resolution is not; the DNS leak article covers how resolvers get chosen.

Could the account or the clock be at fault?

Yes. If the data plan is used up or the plan has expired, you can no longer use the service through the client, and that can look like a repeated drop. Check the remaining data and the expiry date in your account first. Also confirm the system clock and time zone are correct: certificate validation fails when the clock is far off, and some protocols reject handshakes with skewed timestamps.

Which symptom points to which cause?

Use this table to pick the first thing to try. When the cause is still unclear, collect a report with mtr and read it using this guide to traceroute and mtr output.

SymptomLikely causeFirst thing to try
Drops at a regular idle intervalNAT or firewall mapping timeoutKeepalive option, different network
Drops after sleep or a network switchTunnel tied to the old interfaceReconnect, relax power saving
Small pages load, large transfers stallMTU or path MTU black holeDon't-fragment ping, lower MTU
Ping by IP works, names failDNS resolutionCheck resolver settings
Fine at first, degrades after minutesAnother tool rewriting routesQuit conflicting tools, read routing table
Cannot connect at allData used up, plan expired, wrong clockCheck account and system time

Where AnboVPN fits

The official AnboVPN clients for Windows, macOS, iOS, Android and Linux include TUN mode and app-level smart routing. When only some applications misbehave, switching TUN mode on and off and comparing results is a quick way to separate a routing problem from a real disconnect. Because one account has no device limit and is billed by data, you can also sign in on a second device or network to see whether the problem follows the account or the environment. You can get the clients from the AnboVPN download page.

References

VPN troubleshooting
NAT timeout
MTU
Connection drops
TUN mode

FAQ

Why does my VPN disconnect when my computer goes to sleep?
The tunnel is tied to the network interface and address it was created on. During sleep the Wi-Fi radio may power down, and on wake the device often joins a different access point or gets a new address. The old tunnel endpoint is gone, so the client must reconnect. Turning off adapter power saving and keeping the client updated shortens the gap.
Is my traffic exposed when the VPN drops?
It depends on the client and its routing setup. If nothing blocks the normal route, applications can fall back to your regular connection while the tunnel is down, and the websites you visit then see your real IP. Check how your client behaves by disconnecting on purpose and visiting an IP-check page.
How do I find the right MTU for my connection?
Connect the VPN, then send don't-fragment pings with decreasing payload sizes, starting at 1472, until replies come back. Add 28 bytes to the largest working payload to get the packet size. Test more than one target, because some hosts drop ICMP. Then set the tunnel MTU at or slightly below that value, if your client allows it.
How can I tell whether my router is the problem?
Run a continuous ping to a public address with the VPN off, and try the VPN from another network such as a phone hotspot. If the drops disappear on the other network or the ping shows timeouts without the VPN, the router, Wi-Fi signal or ISP is responsible rather than the VPN client.

Related posts

Concepts

Split Tunneling and Smart Routing: Send Only Some Traffic via VPN

Split tunneling sends only selected traffic, by app, address or domain, through the VPN or proxy and lets the rest use your normal connection. It keeps local devices and bulk downloads off the tunnel, but you must verify what each side really does.

Split tunneling
Smart routing
Routing table
IP & Proxies

What Is a Network Gateway? Transparent Proxy and Side Router

A network gateway (transparent proxy, often run as a side router) is a Linux machine on your network that forwards other devices' traffic through a tunnel or proxy, so those devices need no client software. It suits TVs, consoles, NAS boxes and headless servers.

Network gateway
Transparent proxy
Side router
Concepts

IPv4 vs IPv6 on Dual-Stack Networks: Why They Behave Differently

On a dual-stack network your device has both an IPv4 and an IPv6 address and picks one per connection. The two stacks differ in addressing, NAT, routing and firewalls, so test them separately with curl -4 and curl -6.

IPv4
IPv6
Dual-stack
Concepts

DNS Leaks Explained: What They Are and How to Test for One

A DNS leak is when your device sends DNS queries to a resolver outside your VPN or proxy tunnel while the rest of your traffic goes through it. Test it with dig, nslookup or tcpdump, and fix it by making lookups follow the same path as connections.

DNS
DNS leak
TUN mode