scan network devices on the same network using nmpa 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