how to use nmap to scan for connected devices code example Example: nmap scan network ip sudo nmap -sP 10.10.0.0/24