Nmap does not show all devices connected to my network
I want to use xerosploit but when I scan my network, it just shows two devices
- My device
- My Router
Then I thought there was some problem in xerosploit, but when I scanned my network through nmap it also shows the same result. Why?
The command I used on nmap is nmap -sn ip addr/24. I even tried the Aggressive Scan option, but it still only showed these two hosts up.
1 Answer
Two things come to mind, and both of these could contribute to your problem:
If you inserted your machine's entire IP address and added the
/24, this is not a valid netmask for your use case. If you wanted to scan 192.168.1.1 through 192.168.1.254, the proper IP fornmapis192.168.1.0/24. For a /24, take the first three octets of your computer's IP and set the last digit to zero. If you are on a more complicated network, use a subnet calculator to determine what your scan range should be.You may have devices on your network not responding to pings, which in the default mode of
nmap, will cause them to report as down without any actual port scanning. To have it try anyways, use the option-Pn.