macOS / binaries /

nmap

/usr/local/bin/nmap
Network exploration tool and security/port scanner

nmap uses raw IP packets in novel ways to determine what hosts are available on the network, what services those hosts are offering, what operating systems they are running, what type of packet filters/firewalls are in use, and dozens of other characteristics.