SS Safe Surf Lab
vpntroubleshootingwindows

VPN Disconnects When Laptop Goes to Sleep: Why and How to Fix It

Why your VPN drops when your laptop sleeps, what is normal, and the Windows, macOS and VPN app settings that get it to reconnect reliably on wake.

SS Safe Surf Lab team · · 6 min read · 7 sources
Churchill Club Top 10 Tech Tech Trends Debate 2013 — I chose Deep Learning / Machine Learning
Photo: jurvetson (CC BY 2.0) via Openverse

When a laptop goes to sleep, the operating system cuts power to the network adapter, so the VPN tunnel drops. That part is normal and you can’t fully avoid it. The real problem is a VPN that doesn’t reconnect when the lid opens, and you can usually fix that with your VPN app’s auto-connect setting, the adapter’s power settings, and, on newer Windows laptops, the Modern Standby network setting.

Below is what happens during sleep, and then a step-by-step fix for Windows, macOS and the VPN app itself. Settings menus get renamed often, so treat the paths here as accurate as of November 2026.

Why the VPN drops during sleep

A VPN is a live, encrypted session between your laptop and a server. Both sides send small keepalive messages to check the other is still there. The developers of the Viscosity VPN client explain in their knowledge base that a sleeping computer powers down the processor, storage and network interfaces. That means the laptop can’t answer, and the server eventually treats the session as dead. Viscosity deals with this by disconnecting cleanly just before sleep and reconnecting on wake, and many VPN apps take a similar approach.

The tricky part comes after wake. Apple’s Developer Technical Support explained on the Apple Developer Forums that when a Mac wakes, the VPN app’s reconnect code “races” the system’s own code that brings the network interfaces back up. If the VPN tries before Wi-Fi is ready, the attempt fails. A well-written app waits for connectivity and tries again. A less careful one can get stuck showing “connected” with no traffic flowing, or give up.

Exceptions: Modern Standby and Power Nap

Some laptops don’t fully go dark when they sleep:

  • Windows Modern Standby. Many current Windows laptops use Modern Standby (S0 Low Power Idle) instead of traditional sleep. According to Microsoft’s Modern Standby documentation, these systems can stay connected to the network while in standby, and since Windows 10 version 2004 the default mode is Adaptive Connected Standby. SparkLabs says Viscosity keeps connections alive as long as possible when it detects Modern Standby.
  • macOS Power Nap and Wake for network access. These let a Mac do some network work while asleep. SparkLabs names Power Nap as the main exception to the network going fully dark during sleep.

That’s why the same VPN app can behave differently on two laptops.

Quick diagnosis

Before you change anything, work out which problem you actually have:

What you see on wakeLikely causeWhere to look
VPN shows disconnected, reconnects by itself within a few secondsNormal behaviorNothing to fix
VPN shows disconnected and stays that wayAuto-reconnect is off, or the app gave upVPN app settings
VPN shows “connected” but nothing loadsStale tunnel; reconnect raced the network coming upUpdate the app; toggle the VPN off and on
No internet at all, even with the VPN offNetwork adapter didn’t wake properlyWindows adapter power settings, drivers
Internet works only with the kill switch offKill switch blocking the reconnectVPN app support

Fix it in your VPN app first

This is where most of the fixes are, and these settings are safe to change.

  1. Update the app. Reconnect-after-wake bugs are common, and vendors fix them. For example, Mullvad’s blog described a 2022 change that made its macOS app reconnect almost instantly after sleep, where it had previously been about 30 seconds slower, without allowing traffic to leak. That post is old, but the lesson applies to any app: run the current version.
  2. Turn on auto-connect or auto-reconnect. Most VPN apps have an option to connect automatically when the network becomes available. That’s the setting that brings the tunnel back on wake.
  3. Try a different protocol. If your app offers both OpenVPN and WireGuard, try switching. Linux users on community forums have reported that moving to WireGuard stopped their reconnect-after-suspend problems. That’s a user report, not a guarantee.
  4. Check the kill switch. A kill switch is supposed to block traffic while the tunnel is down, so a short gap with no internet on wake is expected. If the VPN never comes back while the kill switch is on, report it to your provider. Don’t just leave the kill switch off, because that defeats its purpose.
  5. As a last resort, disconnect before sleep. It’s clumsy, but connecting fresh after wake is the most reliable approach if your app keeps getting stuck.

Fix it on Windows

Stop Windows from turning off the network adapter

Windows can power down a network adapter to save energy and sometimes doesn’t wake it properly. Microsoft’s network adapter power management article describes how to turn this off:

  1. Open Device Manager.
  2. Expand Network adapters.
  3. Right-click your Wi-Fi (or Ethernet) adapter and choose Properties.
  4. Open the Power Management tab.
  5. Clear Allow the computer to turn off this device to save power, then click OK.

Some adapters, including some USB ones, don’t have this tab. On Modern Standby laptops, the setting doesn’t always override standby behavior, so if it doesn’t help, move on to the next section.

Check Modern Standby network connectivity

  1. Open Command Prompt or Terminal and run powercfg /a. Microsoft’s documentation says this shows whether your laptop supports Modern Standby, and whether it’s “Network Connected” or “Network Disconnected” in standby.
  2. If you have Modern Standby, the network-in-standby option is in your power settings. SparkLabs describes it as the Network connection option in the power and sleep settings, which you can set to disconnect from the network during standby. On some editions it only shows up in Advanced power options or Group Policy.
  3. Decide which way you want it. Keeping the network connected in standby gives the VPN a chance to survive short sleeps but uses more battery. Disconnecting gives you a clean, predictable reconnect on wake.

Guides that give powercfg commands for this setting (CONNECTIVITYINSTANDBY) don’t agree on what the numeric values mean. If you use the command line, check the current value first and stick to the menus where you can.

Work and school laptops (Always On VPN)

If you use Microsoft’s Always On VPN through your employer, failing to reconnect after sleep or hibernate is a well-documented complaint. Richard Hicks, a long-time Always On VPN specialist, has written that there’s no single definitive fix. He suggests the group policy settings that allow network connectivity during connected standby, on battery and when plugged in. On a managed laptop that’s a job for your IT team, not something to change yourself.

Fix it on macOS

  1. Update the VPN app and macOS. Apple’s developer forum shows that even VPN developers struggle with sleep and wake timing, so app updates matter.
  2. Open System Settings > Battery > Options (or Energy on desktop Macs) and look at Wake for network access and Power Nap, where your model has them. Some VPN vendors recommend setting Wake for network access to Always if you need the tunnel to hold through sleep.
  3. Weigh the security trade-off. CIS security benchmarks recommend turning Wake for network access and Power Nap off to reduce the risk of the Mac being woken remotely. If you don’t need the VPN to survive sleep, leave them off and rely on auto-reconnect instead.

What we’d do

Treat the drop as normal and focus on a fast, clean reconnect: current app version, auto-connect on, kill switch on. On Windows, turn off adapter power saving, and only change Modern Standby connectivity if you have a reason to. If the tunnel still gets stuck after all that, your provider’s support team is the right next step. Send them your OS version, app version and protocol.

Frequently asked questions

Is it normal for a VPN to disconnect when my laptop sleeps? +

Yes. During normal sleep the computer cuts power to the network interfaces, so the encrypted tunnel can't stay up. What shouldn't happen is the VPN failing to come back after you wake the laptop.

Can I keep the VPN connected the whole time my laptop is asleep? +

Only partly. Windows laptops with Modern Standby, and Macs with Power Nap or Wake for network access, can keep some network activity going during sleep, and some VPN apps take advantage of that. It costs battery, and the connection can still go stale, so plan on reconnecting when the laptop wakes rather than counting on the tunnel surviving sleep.

Will the kill switch leak traffic while the VPN reconnects after sleep? +

A working kill switch is meant to block traffic until the tunnel is back, which is why you may briefly see no internet on wake. Some users have reported a kill switch stopping the reconnect altogether, so if the VPN never comes back, update the app and contact the provider's support.

Does hibernate behave differently from sleep? +

Hibernate shuts the machine down more completely than sleep, so the VPN will always be disconnected and has to reconnect on resume. Microsoft's Always On VPN has had known reconnect problems after both sleep and hibernate.

Sources

  1. Modern Standby network connectivity (Microsoft Learn) (learn.microsoft.com)
  2. Power management on network adapter (Microsoft Learn) (learn.microsoft.com)
  3. Why do my VPN connections disconnect on sleep? (SparkLabs Viscosity) (sparklabs.com)
  4. System Network Extension and Sleep (Apple Developer Forums) (developer.apple.com)
  5. Always On VPN Connection Issues After Sleep or Hibernate (Richard Hicks) (directaccess.richardhicks.com)
  6. macOS now reconnects instantly after being in sleep mode (Mullvad) (mullvad.net)
  7. CIS Apple macOS 12.0 Monterey: Ensure Wake for Network Access Is Disabled (Tenable) (tenable.com)
About this guide. Researched and drafted with AI assistance from the sources above, then checked against our editorial rules. It reflects what was publicly known on November 4, 2026; details can change, so confirm with the official source before acting on it. How we work →

Our reviews

In-depth reviews from Safe Surf Lab that go with this topic.

Keep reading