352

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.

Community
  • 1
  • 1
M.J.Ahmadi
  • 3,931
  • 4
  • 17
  • 24

3 Answers3

503

Install nmap,

sudo apt-get install nmap

then

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.

Lestrad
  • 3
  • 1
Sunil Bojanapally
  • 12,528
  • 4
  • 33
  • 46
410

Try following steps:

  1. Type ipconfig (or ifconfig on 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.
  2. Ping your broadcast IP address ping 192.168.1.255 (may require -b on Linux)
  3. Now type arp -a (apt install net-tools). You will get the list of all IP addresses on your segment.
malat
  • 12,152
  • 13
  • 89
  • 158
Virendra
  • 4,141
  • 1
  • 12
  • 2
29

If you want to see which IP addresses are in use on a specific subnet then there are several different IP Address managers.

Try Angry IP Scanner or Solarwinds or Advanced IP Scanner

Volker Siegel
  • 3,277
  • 2
  • 24
  • 35