Run two commands in your terminal, and that is it.
brew install nmap #using the following command to install nmap under ubuntu/debian #sudo apt-get i nmap #change your ip range accordingly, common ones are 192.168.0.0/24, 10.0.0.0/24 and etc. #scan 10.0.0.0/8 may take a long time, better avoid it, I didn't try nmap -sn 192.168.1.0/24