Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Network discovery on a Mac

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.

like image 898
Abdullah Jibaly Avatar asked Feb 13 '09 06:02

Abdullah Jibaly


People also ask

How do I turn on network discovery on Mac?

Enable File Sharing and Network Discovery In OS X, launch System Preferences > Sharing > check off File Sharing. Click Options, then check off your user account. If you are unable to do this, your iCloud account might be preventing it.

How do I run a network scan on a Mac?

On your Mac, quit all open apps. Try to join the Wi-Fi network you're having problems with (if you're not already connected). Press and hold the Option key, click the Wi-Fi status icon in the menu bar, then choose Open Wireless Diagnostics. Follow the onscreen instructions to analyse your network connection.

How do I find network details on my Mac?

You can check the status of your network connection, such as Ethernet or Wi-Fi, using Network settings. The information you see here may be useful if you are troubleshooting a connection problem. On your Mac, choose Apple menu > System Settings, then click Network in the sidebar.


2 Answers

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.)

like image 132
diciu Avatar answered Sep 26 '22 15:09

diciu


There is a program called Bonjour Browser that will list well known services that have registered on your local network. I believe that most Macs have one or more registered protocols by default.

like image 39
jdizzle Avatar answered Sep 23 '22 15:09

jdizzle