Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Windows VB.NET
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 9-Jan-13 0:56am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 349
1 Nirav Prabtani 268
2 Richard Deeming 215
3 CHill60 170
4 _Amy 145
0 OriginalGriff 8,104
1 Sergey Alexandrovich Kryukov 7,045
2 Maciej Los 4,039
3 Peter Leow 3,738
4 CHill60 2,912


Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 9 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100