Nmap is an open source network scanner.It is a widely used information gathering tool by hackers. Nmap is supported by all the major operating systems like Linux,Windows,mac. I'm using Kali Linux for this operations.By simply typing nmap in terminal you can get the help menu of nmap.
If you are not installed the nmap then install it using the command
$sudo apt-get install nmap