macOS: How to Force Connect to 5GHz or 2.4GHz WIFI Band (Same SSID)

macOS: How to Force Connect to 5GHz or 2.4GHz WIFI Band (Same SSID)

If you want to connect to a Wireless network that has both 5GHz and 2.4GHz frequency bands enabled and they use the same SSID, you can set your Apple Mac to connect to only a particular WIFI band easily.

                                      

How to scan for the same SSID channels using macOS Wireless Diagnostics

 

1. Open Wireless Diagnostics.app in /System/Library/CoreServices/Applications or you can search for it in spotlight.

 

2. Go to Window -> Scan.

 

Macos wireless diagnostics scan

 

3. Find your Wireless Network Names (with same SSID) and their different channels. In our example below, our 2.4GHz Wireless SSID is on channel 4 and our 5GHz Wireless SSID is on channel 153. Upon checking our router, we have channel 153 hard-set for our 5GHz band, so this looks good.

 

Macos wireless diagnostics scanned networks

 

 

How to scan for the same SSID channels using macOS Terminal

 

1. Open Terminal.app in /USER/Applications/Utilities or you can search for it in spotlight.

 

2. Type the following command in Terminal to search for Wireless Networks (required administrator privileges):

sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport -s

 

3. Find your Wireless Network Names (with same SSID) and their different channels. In our example below, our 2.4GHz Wireless SSID is on channel 4 and our 5GHz Wireless SSID is on channel 153. Upon checking our router, we have channel 153 hard-set for our 5GHz band, so this looks good.

 

Macos terminal scan wireless netowrks airport

 

 

Force Mac to connect to 5GHz Wireless Network Band

 

Now that we identified the channel our 5GHz band is in, we will set our MacBook to connect to only the 5GHz band, so it does not ever connect to the lesser bandwidth band 2.4GHz our router has enabled.

 

1. Disable WIFI on your Apple Mac.





 

2. Open Terminal.app in /USER/Applications/Utilities or you can search for it in spotlight.

 

3. Type the following command in Terminal to force connect to your 5GHz band (required administrator privileges):

sudo /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport --channel=NUMBER

Where NUMBER is the channel ID of your 5GHz network band.

 

4. Reconnect to WIFI.

 

5. Ensure you are connected to the 5GHz band. The easiest way to do this is alt-click your WIFI icon in the menu bar to reveal your Apple Mac’s wireless connection details:

 

Macos apple show wireless details connection alt click



* Please use the comment form below. Comments are moderated.*



Related Posts

 

Comments 6

Guest - John on Sunday, 22 September 2024 09:59

Nice suggestion. And very dangerous for anyone who doesn't understand what they are doing.
I know enough to be afraid that I could screw myself over if I did this.
What do I do when I want to go back to normal operation?
What happens when I want to connect to a different network?
Is this a one time thing?
Or will my Mac now be looking for a network that doesn't exist when I move to a new location?
I want to try it, but I I'm afraid I'll break my system

Nice suggestion. And very dangerous for anyone who doesn't understand what they are doing. I know enough to be afraid that I could screw myself over if I did this. What do I do when I want to go back to normal operation? What happens when I want to connect to a different network? Is this a one time thing? Or will my Mac now be looking for a network that doesn't exist when I move to a new location? I want to try it, but I I'm afraid I'll break my system
Guest - max johnson on Saturday, 14 September 2024 03:56

and when the 2019 MacBook Pro simply STOPS seeing the 5GHz APs? It is random and sudden. Only shutting down and restarting "fixes" it.

and when the 2019 MacBook Pro simply STOPS seeing the 5GHz APs? It is random and sudden. Only shutting down and restarting "fixes" it.
Guest - Tony Napolitano on Saturday, 27 May 2023 08:17

Does not work on Mac Min M2 on Ventura

Does not work on Mac Min M2 on Ventura
Guest - Shivakumar Mahesh on Thursday, 30 March 2023 08:40

Wow! Quick and elegant solution for a problem where every other website (even osx support) denies it can be done.

Wow! Quick and elegant solution for a problem where every other website (even osx support) denies it can be done.
Guest - Ronin on Tuesday, 22 March 2022 12:35

if I did this, how would I reset the changes if I needed to?

if I did this, how would I reset the changes if I needed to?
Guest - Kevin Elmore on Thursday, 16 September 2021 15:17

Can the same method be used to force connecting to only a 2.4 GHz channel? I suppose you'd use channel 1-11?

Can the same method be used to force connecting to only a 2.4 GHz channel? I suppose you'd use channel 1-11?
Thursday, 21 November 2024