Macos – Network discovery on a Mac

macosnetworking

Is there a Mac/Unix commands that lets you see the local network in terms of machines/IP addresses? If there's something on the Mac that is gui-based that would be great too.

Best Solution

ping the broadcast address (the broadcast address is printed as part of the output to ifconfig en0)

The hosts answering are on your local network. (You may also try arp -a but that only keeps track of recently contacted hosts so you may want to run it after the broadcast.)