Mac WiFi keeps disconnecting? Follow these simple solutions

Milan Stanojevic
by Milan Stanojevic
Deputy Editor
0 Comments
Download PDF
Affiliate Disclosure

  • If your WiFi keeps disconnecting on your MacBook, you will not be able to use the internet at all.
  • To start resolving this issue, create a Shell Script, change the sleep settings, and remove all other preferred Wi-Fi networks.
  • To always have the right information about how to fix Mac problems, check out our Mac Fix Hub.
  • For more interesting and easy to understand Mac information, don't hesitate to bookmark our Mac page.
Macbook wifi is disconnecting

Having a stable Internet connection is important, but what can you do if your Wi-Fi connection keeps disconnecting on your MacBook? In this article, we’ll show you how to fix this problem once and for all.

What to do if your Mac WiFi keeps disconnecting?

1. Create a Shell Script

Laptop on table closed screen

Ad

If MacBook Wi-Fi connects then disconnects, one way to fix this issue is to create a shell script that will keep pinging your router. By sending data constantly, your wireless adapter won’t go to sleep. Bear in mind that this is just a workaround and not a long-term solution.

To create a Shell Script, do the following:

  1. Open Automator and choose Application.
  2. Now add a Shell Script item.
  3. Enter the following command:
    • ping -i 0.2 192.168.1.1
  4. Save the app and let it run.

By doing so, you should keep your Wi-Fi awake at all times. Bear in mind that you need to have this script constantly running in the background to prevent any future issues.


2. Change sleep settings

According to users, this issue is frequent when your MacBook goes to sleep. To fix it, you need to do the following:

  1. Open the Apple menu and choose System Preferences.
  2. Navigate to the Energy Saver section.
  3. Increase the Computer sleep time for both Battery and Power Adapter.
    computer sleep settings macbook wifi keeps disconnecting
  4. In addition, it’s advised that you disable Put the hard disk(s) to sleep when possible option for both Battery and Power Adapter modes.

After making these changes, check if the problem is still there. Bear in mind that changing these settings will cause your battery to drain a bit faster.


3. Remove all other preferred Wi-Fi networks

If MacBook Wi-Fi connects then disconnects, try removing all other preferred Wi-Fi networks. To do that, you need to follow these steps:

  1. Go to Apple menu > System Preferences.
  2. Select Network.
  3. Select Wi-Fi from the list on the left and click on Advanced.
  4. Now remove all other connections except the Wi-Fi connection you want to use. You can do that by clicking the minus icon. Also, make sure that your Wi-Fi connection is on top of the list.
    wi-fi settings macbook wifi keeps disconnecting

After doing that, check if the problem is still there.

There you go, a couple of simple solutions that should help you if MacBook Wi-Fi connects then disconnects. If our solutions were helpful to you, feel free to leave us a comment below.

FAQ: Learn more about WiFi problems on MacBook

  • How do I reset my WiFi on my MacBook?

To reset the WiFi on your MacBook, you will need to select the System Preferences option from the Apple menu, click Network, select WiFi, and click the minus (-) button under your network connection. After waiting 2 minutes, press the plus (+) sign and add your network credentials.

  • How do you troubleshoot the Internet on Mac?

To start the internet troubleshooting process on your Mac, you will need to open System Preferences, click the Network option, and select the Assist me option and choose Diagnostics.

Ad
  • How do I wipe my MacBook Air to sell?

To completely wipe all data from your MacBook Air, you will need to restart your device, and hold the Command + R keys pressed until the Recovery Mode starts. Then, simply click on Disk Utility, select your SSD hard drive, click the Erase option.

Ad