Click here to Skip to main content
12,820,077 members (22,180 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB 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 1:56am
Rate this: bad
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.
Rate this: bad
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

which scans my network and reports on all nodes on it.

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

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170308.1 | Last Updated 9 Jan 2013
Copyright © CodeProject, 1999-2017
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