scan local network for devices nmap 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