0

I am trying to get the nearby addresses that I need to send to Google geolocation service on MacOs. I know how to interact with the Google geolocation, I just need to get the adressess to send to it.

I tried and did not work: /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport -s

Give no addresses just:

(redacted) ~ % /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -s
WARNING: The airport command line tool is deprecated and will be removed in a future release.
For diagnosing Wi-Fi related issues, use the Wireless Diagnostics app or wdutil command line tool.

I also tried sudo wdutil scan, but scancommand does not exists it says.

And I think arp -a gives the addresses of phones and etc, not the routers. I need all the wifi access points so Google can figure out where I am.

3
  • The ARP cache contains the MAC addresses of all the devices on the local subnet that your computer has communicated with. This will include a MAC address for the router, assuming that you have an internet connection. It may not include MAC addresses for nearby devices: that will depend on the access point configuration. Commented May 8 at 10:24
  • I presume you're trying to find out the MAC addresses of nearby access points (whether or not the computer is currently connected to them), NOT the MAC addresses of computers on the network it's currently joined to? You should edit the question to clarify this. Commented May 8 at 17:24
  • Hey @TangentiallyPerpendicular. In Windows its very easy, I only have to ask once Gemini and it gives a simple command that does the job netsh wlan show networks mode=Bssid Is there an equivalent in MacOS. I know that I should not be using MacOS for advanced stuff, but I currently don't have access to powerful tools like Windows. Commented May 15 at 17:01

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.