January 20, 2010

If you ever had to figure out how many systems are connected to a network and what IP’s they have then you will find this tip useful. It is also useful to identify any rouge machines on your network if you know how many systems are supposed to be there on that network. Like in case of my home network, where I know the exact no of machines.

There are multiple software out that, that allow you to do this. Some are free, some are very expensive. In my opinion the best one is nmap. It is free, fast and can be scripted.

To find all machines on my LAN (IP Range: 192.168.2.x) I just have to issue the following command:

nmap -sP 192.168.2.0/24

This gives an output like the following when I run it as a normal user:

6 Responses to " List all machines connected to a LAN with additional details on each "

Thnx suramya…
do you have any idea to get details about connected machines without using any s/w??
If you have please reply..
Bcs Im trying to create a s/w to get details about connected machines without installing any s/w on client machines.

Well.. you could put a for loop and ping each IP address in the subnet. If you get a response then that is a valid machine. Can’t think of ways to get additional info without using nmap or something similar.

In any case nmap is usually installed by default on most linux systems.

i am also trying for the same but not able to get
i am uisng asp.net web application
i am able to get all the systems names in LAN aswell as their IP
but i am not able to get the details of the systems in LAN lie their processor, type, RAM , port no used etc