nmap see devices on network code example Example 1: nmap scan network ip sudo nmap -sP 10.10.0.0/24 Example 2: nmap scan ubuntu sudo nmap 192.168.0.1