nmap scan available ip addresses in lan code example
Example 1: scan entire network nmap
nmap -sP 192.168.1.0/24
Example 2: nmap scan network ip
sudo nmap -sP 10.10.0.0/24
nmap -sP 192.168.1.0/24
sudo nmap -sP 10.10.0.0/24