Click here to Skip to main content
15,884,177 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi all

I want to display which all systems in a LAN is turned on..

e.g.i want to display the system names in labels

Please tell how to do it..

Thank you
Posted

You can install nmap on your machine and get it to inquire about your network. Info about it can be found here.

This tool will tell you what nodes are on your network, their MAC address and what ports re open. If my network is 192.168.1.*, the command I would use is

nmap -sP 192.168.1.0/24

which scans my network and reports on all nodes on it.
 
Share this answer
 
This: Retrieving IP and MAC addresses for a LAN[^] does rather more than you want - it retrieves the IP and MAC addresses, but you can use GetHostByAddress[^] to get the host name from the IP.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900