Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Code for Scanning # of PC's on Network

Status
Not open for further replies.

peryan77

Programmer
May 7, 2004
41
US
Can anyone point me in the right direction on how to create a program to return the # of PCs connected to the network?

Also, what factors do I need to consider when programming this. I am new to C#. (VB Progammer, yuk!)

Thanks
 
You will need to ping or probe each IP address. You will need to get the current IP address and subnet mask, then iterate round all the combinations and see what is out there.

This may fail if a PC has a personal firewall on, as it wouldn't respond.

Hollingside Technologies, Making Technology work for you.
 
This could probably be done using a WMI query and the .NET System.Management namespace.

Take a look at the documentation for more info.


Thanks,
ChrisA

Regards,
JJayUK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top