Searching for Linux command that can list all IP addresses of devices connected to the network? Use nmap or ping commands to determine alive hosts in your local network.

Source : Finding Active Computers in Local Network from Linux | Networks