nmap

Network exploration and security auditing port scanner

brewmacoslinux
Try with needOr install directly
Source

About

Port scanning utility for large networks

Commands

nmapnpingndiff

Examples

Scan all ports on a target host$ nmap -p- 192.168.1.1
Detect OS and service versions on target$ nmap -A 192.168.1.1
Scan a subnet for active hosts$ nmap -sn 192.168.1.0/24