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.1The 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 showWith 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.
| Symptom | Likely cause | First thing to try |
|---|---|---|
| Drops at a regular idle interval | NAT or firewall mapping timeout | Keepalive option, different network |
| Drops after sleep or a network switch | Tunnel tied to the old interface | Reconnect, relax power saving |
| Small pages load, large transfers stall | MTU or path MTU black hole | Don't-fragment ping, lower MTU |
| Ping by IP works, names fail | DNS resolution | Check resolver settings |
| Fine at first, degrades after minutes | Another tool rewriting routes | Quit conflicting tools, read routing table |
| Cannot connect at all | Data used up, plan expired, wrong clock | Check 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.






