AnonymFlow
securite-reseauINFO

VPN Keeps Disconnecting? Start With the Question That Splits the Causes in Two

Does your internet also drop, or does it stay fine while the tunnel dies? That single question separates two entirely different sets of causes - and most guides skip it, which is why they send you through fixes that cannot apply.

By Eric Gerard · Editor · AnonymFlow4 min readPhoto: Pexels

Most guides to this problem hand you a list of eight fixes and let you work through them. That is backwards, because the first question cuts the list in half and takes ten seconds to answer.

Ask this first: does your internet drop too?

When the VPN disconnects, check whether the connection itself is still working, load a page with the VPN off, or look at whether other devices in the house are fine.

If your internet drops as well, the tunnel is a victim, not a cause. Your link is unstable and the VPN is the first thing to notice. Fix the connection: Wi-Fi channel congestion, distance from the router, a flaky line. Nothing in the VPN client will help.

If your internet stays fine while the tunnel dies, you have eliminated your ISP and your router's connection quality in one step. What remains is a short list of things that kill a tunnel while leaving the network up, and that is what the rest of this page covers.

A close-up of a thick steel chain hanging against a white metal post streaked with rust, the background blurred.
A close-up of a thick steel chain hanging against a white metal post streaked with rust, the background blurred.

Cause 1, The operating system is suspending the app (mobile, mostly)

On a phone, this is the most common answer by a wide margin, and it has nothing to do with networking.

Android and iOS suspend background apps to save battery. A VPN client is a background app. When the system freezes it, the tunnel dies, and it typically comes back the moment you unlock the screen, which is exactly the pattern people describe as "it disconnects when I'm not using it".

Fix: exclude the VPN from battery optimisation, and enable Always-On if your client offers it. If your disconnections are on a phone and not on a laptop, start here and go no further until you have ruled it out.

Cause 2, An idle NAT mapping is being dropped

The classic signature: it works for a minute or two, then stops, especially when you are not actively using it.

Your router holds a mapping so replies can find their way back to your device. If nothing crosses the tunnel for a while, it forgets. The server then has nowhere to send packets, and the connection appears to die on its own.

Fix: on WireGuard, set PersistentKeepalive = 25 on the peer that sits behind NAT. It sends a tiny packet every 25 seconds purely to keep the door open. Commercial clients usually do this for you, but self-hosted setups often do not.

Cause 3, The kill switch is amplifying small drops

Worth understanding before you change anything else: a kill switch blocks traffic when the tunnel drops. That is its purpose.

The consequence is that a two-second reconnection you would never have noticed becomes a visible failure, pages stop, downloads die. The tunnel may be dropping far less often than it feels. Before hunting a serious fault, check whether what you are experiencing is a rare, self-healing drop made loud by a setting doing its job.

Cause 4, The server, not you

Thirty-second test: switch to a different server and see whether the pattern follows.

If the disconnections stop, the previous server was overloaded or rotating sessions, and nothing on your device needed changing. If they follow you across several servers, the cause is local. This test costs nothing and eliminates an entire half of the possibilities, so run it early.

Cause 5, You are moving between networks

If drops coincide with leaving the house, or with moving between access points, the handover is the mechanism.

WireGuard is connectionless and can resume after your address changes, which usually makes this quick. OpenVPN maintains a session and more often needs a full reconnection. If your client offers both and you are on OpenVPN, switching is a reasonable test, the same lever that helps when a VPN is slow rather than unstable.

Cause 6, Something local is interfering

Least likely, and last for that reason: a firewall or security suite that inspects traffic can close a tunnel it does not recognise. The signature is a disconnection that is reproducible on one machine and absent on every other device on the same network.

What to do with the answer

If you worked through this and the tunnel still dies on several servers, with battery optimisation off and a keepalive set, the honest conclusion is that the provider's stability on your route is the limit. That is a reason to test another provider: not another setting.

And if the drops turned out to be rare but painful, the setting to revisit is the kill switch, not the tunnel: what a kill switch actually does is block traffic on purpose, and knowing that changes how you read the symptom.

Editorial pick
4.6 / 5

Ruled out your device? Test another provider's stability on your own route - 30-day money-back

Enough servers to switch away from one that drops sessions, plus an always-on option on mobile

Deloitte audit 202430-day guarantee14M+ users
See the offer
Editorial pick
4.6 / 5

Secure your connection with NordVPN

Threat Protection blocks trackers & malware · kill switch · 30-day money-back

Deloitte audit 202430-day guarantee14M+ users
See the offer
Everything you need to know.

Frequently asked questions

My VPN keeps disconnecting but my internet is fine - what does that mean?

It means the underlying link is stable and only the tunnel is dying, which rules out your ISP and your router's connection quality straight away. The remaining suspects are the ones that kill a tunnel while leaving the network up: an idle NAT mapping being dropped, the operating system suspending the VPN app in the background, or the server closing your session. That is a much shorter list than the one most guides give you.

Why does my VPN disconnect on Android or iPhone but not on my laptop?

Battery optimisation is the usual answer, and it is the single most common cause on mobile. Both systems aggressively suspend background apps to save power, and a VPN client is a background app like any other. Excluding the VPN from battery optimisation - on Android, in the app's battery settings; on iOS, by allowing it to run and keeping Always-On where the client offers it - fixes a large share of mobile disconnections. Nothing about the tunnel itself is at fault.

What is PersistentKeepalive and do I need it?

It is a WireGuard setting that sends a tiny packet at a fixed interval, typically every 25 seconds, purely to keep a NAT mapping open. You need it when your device sits behind NAT - a home router, a mobile network - and the connection dies after a period of inactivity. Without it, the router forgets the mapping, the server can no longer reach you, and the tunnel appears to drop for no reason. It is the fix for the classic 'works for two minutes, then stops'.

Is my kill switch making it look worse than it is?

Often, yes, and it is worth understanding before you start changing settings. A kill switch blocks all traffic when the tunnel drops - that is its job. So a brief, self-healing reconnection that you would never have noticed becomes a visible outage: pages stop loading, downloads fail. The tunnel may be dropping far less often than it seems; the kill switch is simply making every drop consequential.

Could the server be the problem rather than my device?

Test it in thirty seconds: switch to a different server and see whether the pattern follows you. If the disconnections stop, the server was overloaded or was rotating sessions, and nothing on your device needed fixing. If they follow you across several servers, the cause is local - your network, your client, or the operating system suspending it.

Does switching between Wi-Fi and mobile data break the tunnel?

It interrupts it, and how gracefully depends on the protocol. WireGuard is connectionless and can resume after your address changes, which usually makes the handover quick. OpenVPN maintains a session and more often needs a full reconnection. If your disconnections coincide with leaving the house or moving between access points, this is the mechanism - and switching protocol is a reasonable test.