using nmap to find all devices connected to router code example Example: nmap scan network ip sudo nmap -sP 10.10.0.0/24