How to get a list of all valid IP addresses in a local network?
Is there a way to get a list of all valid IP addresses in a local network?
I mean all IP addresses that each user is using in the network.
sudo apt-get install nmap
nmap -sP 192.168.1.*
or more commonly
nmap -sn 192.168.1.0/24
will scan the entire .1 to .254 range
This does a simple ping scan in the entire subnet to see which hosts are online.
Try following steps:
ifconfigon Linux) at command prompt. This will give you the IP address of your own machine. For example, your machine's IP address is 192.168.1.6. So your broadcast IP address is 192.168.1.255.
- Ping your broadcast IP address
ping 192.168.1.255(may require
- Now type
arp -a. You will get the list of all IP addresses on your segment.
Read more... Read less...