nmap list all devices on network 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
Example 3: nmap list all local devices
nmap -sP GATEWAYIPV4/24
nmap -sP 192.168.1.0/24
sudo nmap -sP 10.10.0.0/24
nmap -sP GATEWAYIPV4/24