You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Does macOS automatically join a most preferred network if it becomes available?

If a wi-fi network is auto-joined, but then another auto-joinable network becomes available, does macOS automatically switch to the newly available network if it's most preferred?


In other words:


I have Wi-Fi networks A and B. Both are set to auto-join. B is most preferred compared to A. Only A is active or in range, so my Mac connects to it. The question then is: if B becomes active or in range while it's connected to A, will my Mac automatically connect to B without any input?

MacBook Pro 14″

Posted on Jan 5, 2023 10:03 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 5, 2023 12:49 PM

Once you have joined a network, it should not dynamically switch to a different network, regardless of preferred status.


It should ONLY go through the list of known network when it is not currently joined to any network.


Dynamically switching to a different WiFi network, should it become available, moving away from the WiFi network the Mac is currently joined to, would interrupt any on-going network activities, as switching to a new network would result in a new IP address, a new router, and a new path between remote servers and the Mac. Any on-going connections would be lost if the Mac dynamically switched while you were using the system.

2 replies
Question marked as Top-ranking reply

Jan 5, 2023 12:49 PM in response to StratoFabio

Once you have joined a network, it should not dynamically switch to a different network, regardless of preferred status.


It should ONLY go through the list of known network when it is not currently joined to any network.


Dynamically switching to a different WiFi network, should it become available, moving away from the WiFi network the Mac is currently joined to, would interrupt any on-going network activities, as switching to a new network would result in a new IP address, a new router, and a new path between remote servers and the Mac. Any on-going connections would be lost if the Mac dynamically switched while you were using the system.

Jan 5, 2023 12:21 PM in response to StratoFabio

In previous macOS versions from Monterey and prior, there used to be a preferred network list that you could edit in the Network -> Wi-Fi -> Advanced screen. Since Ventura has done away with System Preferences in favor of System Settings that screen is no longer available. If both networks are in range at the same time, the list of preferred networks would determine which one would be chosen over the other.


If network A & B were already setup previously they are remembered. If you are trying to set it up now that you are on Ventura you can list the preferred networks and change the order via the command line in Terminal.


MacBook's will always assign the network interface en0 (zero) to the Wi-Fi device. Desktop Macs usually assign Wi-Fi to en1 instead. So issuing the following command below in Terminal will list the preferred wireless networks. The top most entry has precedence over the lower entries.


networksetup -listpreferredwirelessnetworks


Example results:


Preferred networks on en0:
	Starbucks
	McDonalds
	James iPhone


Let's say you want McDonalds to be the preferred default because there's a Starbucks close by. Who knows, maybe you prefer the coffee at McDonalds (*wink*)? This is just an example...


Remove the McDonalds network first

networksetup -removepreferredwirelessnetwork en0 McDonalds


then add it back but with a higher index value (starts counting from 0, 1, 2, 3, etc)

networksetup -addpreferredwirelessnetworkatindex en0 McDonalds 0 WPA2
                                                               ^ Index value is 0
                                                                 ^ WPA2 is most common Wi-Fi


Example results:


Preferred networks on en0:
	McDonalds
    Starbucks
	James iPhone


These settings sync with your other Apple devices.

Does macOS automatically join a most preferred network if it becomes available?

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