How to keep Wi-Fi on your phone from disconnecting after it's locked

Many users are familiar with the situation where a smartphone stops receiving notifications or loses internet connection immediately after the screen goes dark. This occurs due to the aggressive power-saving policies built into modern operating systems. Android And iOSDevice manufacturers strive to maximize battery life by forcibly terminating background connections if they deem them inactive.

However, for stable operation of instant messengers, smart home or background file downloads, it is necessary that Wi-Fi module remained on even in sleep mode. Default settings often don't provide full control over this process, requiring deeper intervention. In this article, we'll cover specific steps for various operating system versions to help resolve connection interruptions.

Ignoring this issue can result in the loss of important messages or interrupted downloads of large files. Understanding how it works background processes will allow you to configure the device so that it works exactly the way you want, and not the way the manufacturer decided to save a couple of percent of battery.

Reasons why the connection is lost in sleep mode

The main culprit behind network instability in a locked state is power optimization. The operating system analyzes application behavior and, if it determines a program isn't currently in use, it restricts its network access. This is especially true for devices with shells. MIUI, EMUI or One UI, where security settings are extremely strict.

In addition to software limitations, there are also hardware limitations. Some Wi-Fi modules, when entering deep sleep mode (Deep Sleep) may lose synchronization with the router if the signal is not strong enough. It's also worth considering that the router may automatically disconnect from a client that has been inactive for a long time, considering it to be out of range.

⚠️ Attention: On some smartphone models, the "Adaptive Connection" feature may automatically switch you to mobile data if it detects a weak Wi-Fi signal, even if it's actually stable. Disable this option if available in your network settings.

It's important to distinguish between a complete module shutdown and simple data packet loss. In the former case, the Wi-Fi icon disappears or is replaced by a mobile network icon. In the latter case, the connection is formally established, but no data is transmitted. Resolving the latter issue often requires changing the channel on the router or updating the network card drivers.

Power saving settings on Android

In the operating system Android Starting with version 6 and later, power management has become more granular. To prevent Wi-Fi from disconnecting, you need to adjust the settings in the battery section. The path to these settings may vary depending on your device model, but the general logic remains the same.

First go to Settings → Battery → Power saving modeHere, you need to select "Performance" or "Balanced" mode, avoiding "Power Saver" mode. Next, find "Sleep" or "Autostart" and add your apps to the exceptions list. This will allow them to run in the background without restrictions.

Particular attention should be paid to the parameter Wi-Fi in sleep modeIn older versions of Android, it was located in the advanced Wi-Fi settings. In newer systems, Google removed direct access to this feature, shifting responsibility to battery optimization. Therefore, setting exceptions for specific apps becomes critical.

📊 How often does your Wi-Fi turn off in sleep mode?
Constantly, every 5 minutes
Only at night
Rarely, once every few days
I've never noticed such a problem.
  • 📱 Open battery settings and find the list of high-draining apps.
  • 🔋 Select the desired application and set the operating mode to "Unlimited."
  • 🔌 Disable adaptive brightness and location tracking in sleep mode for testing.
  • 📡 Make sure that the "Turn off Wi-Fi when idle" box is not checked in the Wi-Fi settings.

If standard methods don't help, you can use third-party power management utilities, but this requires caution. Often, simply disabling the system from killing the process responsible for the network connection is sufficient.

iPhone and iOS setup specifics

In the ecosystem Apple Network connection management is more strictly regulated. Function Wi-Fi Assist (Wi-Fi Assistant) is often the reason why a phone ignores the wireless network when locked if it detects a weak signal. It automatically switches the device to the cellular network, which may go unnoticed by the user.

To disable this feature, go to Settings → Cellular and scroll to the bottom of the page. There you'll find the "Wi-Fi Assistant" toggle. Disabling it will keep your iPhone connected to a Wi-Fi network even when the signal strength is low, until the connection is completely lost.

It's also worth checking your background content refresh settings. Go to Settings → General → Content UpdateMake sure important apps (email, messaging) have background permission enabled. Without this permission, iOS will suspend the app's network activity as soon as you lock the screen.

Parameter Where to find Recommended value Impact on battery
Wi-Fi Assistant Cellular communications Off Average
Background update Main On (for important) High
Low power mode Control center Off Critical
Geolocation services Privacy When using High

Managing applications and background processes

Even with proper system settings, apps themselves may not handle focus loss correctly. Many programs stop requesting data as soon as the user minimizes them or locks the screen. This behavior is designed by developers to save data and power, but it runs counter to the goal of always-on connectivity.

For Android, it's important to check app permissions. Go to Settings → Apps → Select an app → Battery"Unlimited" or "Do not limit" should be selected here. If "Optimized" is selected, the system will periodically disconnect the connection for this app.

In iOS, the app "freezing" mechanism works differently. The app doesn't run in the background in the true sense of the word; it only receives short bursts of activity. For messaging apps, this is accomplished through push notifications (APNS), which arrive even when the app is closed. However, VoIP calls or music streaming require the app to be enabled. background mode.

⚠️ Attention: Clearing memory ("swiping" apps) on Android often completely stops the app's network activity. If you need notifications, don't force-close the app.

Also check your date and time settings. If they are incorrect or out of sync with the network, security certificates may be invalidated, leading to a disconnected secure connection when entering sleep mode.

Router settings and DHCP lease

The problem may lie not only in the phone, but also in the settings of the router itself. Protocol DHCP It assigns an IP address to the device for a specified period of time (the lease time). If this period expires while the phone is asleep, the router may reclaim the address, and the phone will be unable to quickly obtain a new one upon waking.

It's recommended to increase the DHCP lease time in your router settings. The default value is often 120 minutes (2 hours) or even less. Increasing this value to 1440 minutes (24 hours) or 10080 minutes (week) will reduce the frequency of address renewal requests.

How to change DHCP lease time?

Log into your router's web interface (usually 192.168.0.1 or 192.168.1.1). Find the LAN or DHCP Server section. In the Lease Time field, set the maximum value or enter the number of minutes manually (e.g., 86400 for 24 hours). Save the settings and reboot the router.

It's also worth checking the power saving settings of the router's Wi-Fi module itself. In some models TP-Link, Asus or Keenetic There are "Eco Mode" or "Green Wi-Fi" features that reduce signal strength or turn off antennas when there's no active data transfer. For stability, it's best to disable these features.

  • 📡 Increase the DHCP address lease time to 24 hours or more.
  • 🔒 Disable MAC address filtering to test connection stability.
  • 📶 Separate the 2.4 GHz and 5 GHz frequencies by giving them different names (SSIDs).
  • 🔄 Update your router firmware to the latest version.

Additional methods and network reset

If software adjustments don't help, the system may have accumulated network configuration errors. Resetting network settings is a drastic but often effective method. It will delete all saved Wi-Fi passwords, Bluetooth, and VPN settings, but will return the network modules to their factory settings.

To perform a reset on Android, go to Settings → System → Reset settings → Reset Wi-Fi, mobile data, and Bluetooth settingsOn iPhone, the path will be as follows: Settings → General → Transfer or reset iPhone → Reset → Reset Network Settings.

Another hidden setting accessible through the engineering menu (on Android) is the Wi-Fi sleep mode setting. However, access to these menus depends on the processor manufacturer (Qualcomm, MediaTek) and can be blocked. Use of such methods requires caution.

☑️ Diagnostic checklist

Completed: 0 / 5

Keep in mind that some protective cases, especially metal ones or those with magnetic closures, can block the signal. When you lock your phone, you often place it on a table or in your pocket, where the case's interference with the antenna can be critical, causing a disconnect.

Frequently Asked Questions

Why does Wi-Fi only turn off at night?

You likely have "Do Not Disturb" mode enabled or a specific scheduled power saving profile. Check your automation settings in the "Digital Wellbeing" or "Screen Time" sections, as these may include rules for turning off the network during specific hours.

Does updating Android affect Wi-Fi performance?

Yes, new versions Android (12, 13, 14) are becoming increasingly strict about background activity. After a major system update, always check your battery settings, as they may reset to a more aggressive savings profile.

Can a router turn off a phone by itself?

Yes, if the "Disconnect inactive clients" feature is enabled in the router settings or the DHCP timeout is set too short. Older routers may also be unable to handle a large number of connected devices, dropping "quiet" clients.

Will a static IP address help?

In some cases, setting a static IP address in your phone's Wi-Fi settings can help avoid issues with address acquisition after waking up. Try setting the IP manually if dynamic assignment is unreliable.