nmap find all alive hostnames and IPs in LAN

nmap versions lower than 5.30BETA1: nmap -sP 192.168.1.* newer nmap versions: nmap -sn 192.168.1.* This gives me hostnames along with IP adresses, and only pings the hosts to discover them. This will only give you the hostnames if you run it as root. EDIT: As of Nmap 5.30BETA1 [2010-03-29] -sP has been replaced with -sn … Read more