Find computer names on a private network (with nmap?)
- by paracaudex
On a LAN, I want to find out the names of all the connected computers using a cross-platform program, preferably nmap. I know I can do
nmap -sn xxx.xxx.xxx.xxx/24
(where xxx.xxx.xxx.xxx is a local IP address) to find hosts which are up, but how do I find the computers' hostnames? Do they broadcast this in a way that I can find using nmap?
UPDATE: It looks like Angry IP Scanner can do this. How does it do this? Can I replicate it with nmap?