how to find the number of connected devices to a router using nmap code example Example: nmap scan network ip sudo nmap -sP 10.10.0.0/24