Scan Nearby Wi-Fi Networks with the airport Command
List surrounding Wi-Fi networks with signal, channel, and encryption type using the hidden airport scan command.
01Command
$ sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport -s02What it does
macOS hides a small private tool called airport inside the Apple80211 framework; with -s it performs a site survey of every network in range and prints SSID, BSSID, RSSI (signal), channel, and the security mode (NONE, WPA2, WPA3...). It is the quickest way to find out whether the network you are about to join is open, to find the least crowded channel before positioning a router, or to spot a neighbour's network piggy-backing your SSID. For just your current connection, airport -I shows RSSI, noise, and transmit rate.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- airport - Wireless Link ConfigurationEvidence: Documents the airport -s scan, listing SSID, BSSID, RSSI, channel, and security (encryption) type of nearby networks.
Last verified: 2026-09-18 · Category: Security & Privacy
06Related solutions
Power-cycle the Wi-Fi interface to fix dropouts and stuck connections — no reboot needed.
Build an AES-256 encrypted .dmg vault from the Terminal — no Disk Utility clicking required.
Check whether an application bundle was signed properly and hasn't been modified since.