How can I make my MacBook prioritize my phone's hotspot?

I just got a Macbook Air M3 and like it quite a lot. There's one thing I can't figure out however:


I have an old and slow home router, "home wifi" that is on 24/7. When I come home, I suppleant this wifi network by activating my phone's hotspot to get way better speeds, however, the macbook isn't switching over to this network by itself so I have to manually click "phone wifi" on the mac every time after I've started my phone's hotspot. How do I tell the computer to prioritize my phone wifi over the old home wifi?


ps. Noticed that both of those wifi networks have the "Automatically join this network" ticked, which I assume is correct.



[Re-Titled by Moderator]

Posted on Feb 6, 2025 2:45 AM

Reply
Question marked as Top-ranking reply

Posted on Feb 6, 2025 4:44 AM

Right, been doing some digging... you may be able to manipulate the service order still, but using terminal commands...


Using this command in terminal should display the list of known networks and the order they're currently in:

  • networksetup -listpreferredwirelessnetworks en1


Just check whether your Wi-Fi interface is en0 or en1 or something else. You can use "networksetup -listnetworkserviceorder" to see all the interfaces, and their names and device number.


You can use combination of the following commands to manipulate the order of the wifi networks. In your case, you may only need to move your hotspot SSID to the top of the list; so that you Mac prefers to join that network first whenever is available.


  • networksetup -listpreferredwirelessnetworks <device name>
  • networksetup -addpreferredwirelessnetworkatindex <device name> <network> <index> <security type> [password]
  • networksetup -removepreferredwirelessnetwork <device name> <network>
  • networksetup -removeallpreferredwirelessnetworks <device name>


You could try using the following for example:

  • syntax: networksetup -addpreferredwirelessnetworkatindex <device name> <network> <index> <security type> [password]
  • example: networksetup -addpreferredwirelessnetworkatindex en1 Hotspot 0 WPA2


I'm estimating that because the network already exists, you may not require the password. This should move the network "Hotspot" to the top of the list. You can check the list order again by using the first command again. You may need to remove the network and add it back where you want it in the list.


Happy hunting.

17 replies

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.

How can I make my MacBook prioritize my phone's hotspot?

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