18

Is there any way to get Mac OS X to connect to a specific access point by BSSID? I have a network with the same SSID for multiple access points, and I would sometimes like to specify which specific access point to connect to. Is this something Mac OS X can do natively, or is there a third party tool that can do this?

  • If the APs are on the same network, you should be connecting automatically to any in range, right? – Nathan Greenstein Jan 26 '11 at 1:04
  • @Nathan Connecting to the network isn't the problem, it's just one is a G network and one is an N network, and I want to use the N one whenever possible. Changing the SSID is, unfortunately, not an option. – Kyle Cronin Jan 26 '11 at 1:06
  • Gotcha. I was missing the g/n bit. – Nathan Greenstein Jan 26 '11 at 1:14
  • Maybe if you dig into the preferences file and try to edit manually . I know for an old powerbook G4 (Mac 10.4.11) I have the airport command line tool "/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport" with the --associate and --bssid options available but it seems to be removed from newer releases. – phwd Jan 26 '11 at 23:55
  • 1
    I have the same issue. I solved it from the other end, blocking my Mac's MAC from the undesirable router. – Jamie Kitson Jan 1 '13 at 19:42
5

What OS X version do you have?

In older versions this is possible:

/System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -A'NETWORKNAME' BSSID='00:11:22:33:44:55' password='PASSWORD'

But on OS X 10.6 it doesn't work anymore.

I've searched high and low for a solution for this, but haven't found anything yet. The only solution is going closer to your base station. So that the n -signal is stronger.

| improve this answer | |
  • on osx 10.14.1 (mojave) is located in "/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport" – AsimRazaKhan Nov 19 '18 at 10:20
  • @AsimRazaKhan But it doesn't fulfill the same function. At least I can't find a way to actually connect to something – deiga Nov 26 '19 at 16:59
3

an updated version of the above tool can confirm working on el capitan (10.11)

airport-bssid

| improve this answer | |
  • 1
    Solves my problems on Mojave. It doesn't switch to the BSSID you specify but it does trigger a switch, to the best BSSID in the same ESSID. And it does this much faster than networksetup or disable/re-enable wifi to try to achieve the same result (namely, make wifi work when Mac is stubbornly ignoring the strong AP right next to you in favour of the one in the back of the house). – Partly Cloudy Sep 9 '19 at 23:38
2

You can use that tool:

airport-bssid on github

| improve this answer | |
  • 1
    the link doesn't inspire much confidence either – Tetsujin Nov 30 '15 at 20:15
  • @Annhydrium Please add some instructions. Most of the information contained in the README file on that GitHub project is in Japanese. – Ben Morrow Aug 29 '16 at 4:17
  • Try google translate. – historystamp Nov 28 '16 at 23:53
  • The readme is in japanese, and you have to compile it from source, but once you've figured it out, it works as advertised – tbodt Oct 8 '17 at 2:33
  • @tbodt I couldn't get it to work. There may be something I am missing. I downloaded it and compiled it both using the makefile and xcode, neither worked. It claims to have connected to the bssid I want, but macos still doesn't care and tries to connect to the other network – MuhsinFatih May 13 '18 at 2:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .