How to identify IP Address’s of all devices in a network ?

Sometimes someone from within your network starts consuming lot of bandwidth and you just needed to identify how many devices are connected to your network / WiFi. You can easily do it by logging into your router admin panel but what if you don’t have permissions to access the router panel.

In the above scenario, “nmap” comes to our help. As we have seen in our previous posts “Identify all devices in a network using nmap and ARP scan” and “How to get all the details of a device using IP address in Linux/Ubuntu” we had used nmap to get lot of information.

In this post we will just try to display IP address’s of all the devices in a network. If you are using latest Ubuntu versions like Ubuntu 18.04, you can install nmap as,

$ sudo snap install nmap

Check the IP address of your Desktop/Laptop using ifconfig command, and if your laptop/host IP address is 192.168.1.xxx , use 192.168.1.0/24 with nmap or if your laptop/host IP address is 192.168.43.xxx , use 192.168.43.0/24 with nmap

$ nmap 192.168.1.0/24 -n -sP | grep report | awk '{print $5}'
192.168.1.1
192.168.1.113
192.168.1.137
192.168.1.143
192.168.1.169
192.168.1.171

As we can see above, our network currently has 6 devices connected with IP address’s as above.

Leave a Comment