Wifi Shuts down when lid is closed on macOS Sonoma

I've just bought a new MacBook Pro. When I close the lid or when screen becomes inactive. The wifi connection closes itself.


I tried to search on internet but It shows screenshots of some other Mac OS I think.

So my question is specifically for Sonoma OS. I don't see any option in setting to keep wifi awake while lid is off.


Can someone please help?

MacBook Pro 14″, macOS 14.2

Posted on Jan 16, 2024 5:27 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 17, 2024 10:51 AM

When you use a computer in a busy environment, you get your local IP address via DHCP. This is referred as a 'lease' on the use of that IP address. You can only use and hold the lease for its lease duration, and never beyond the lease period, or your traffic may collide with a different computer's data.


So when you Mac goes to sleep, it does not know whether it will still be sleeping when the DHCP lease on its local IP address expires. To avoid issues, it releases its IP address.


it is possible, with certain settings, that when your display goes dark, you Mac also sleeps.


System preferences > Battery > Power adapter...

Check :

[√] Prevent computer sleep when the display is OFF


it will warn you this setting uses more power.


--------

These settings seem to vary wildly between different versions of MacOS:


Set sleep and wake settings for your Mac - Apple Support


3 replies
Question marked as Top-ranking reply

Jan 17, 2024 10:51 AM in response to Indian-monk

When you use a computer in a busy environment, you get your local IP address via DHCP. This is referred as a 'lease' on the use of that IP address. You can only use and hold the lease for its lease duration, and never beyond the lease period, or your traffic may collide with a different computer's data.


So when you Mac goes to sleep, it does not know whether it will still be sleeping when the DHCP lease on its local IP address expires. To avoid issues, it releases its IP address.


it is possible, with certain settings, that when your display goes dark, you Mac also sleeps.


System preferences > Battery > Power adapter...

Check :

[√] Prevent computer sleep when the display is OFF


it will warn you this setting uses more power.


--------

These settings seem to vary wildly between different versions of MacOS:


Set sleep and wake settings for your Mac - Apple Support


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Wifi Shuts down when lid is closed on macOS Sonoma

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.