IT Community - Software Programming, Web Development and Technical Support

Get list of computers connected to the local network

This is a discussion on Get list of computers connected to the local network within the C# Programming forums, part of the Software Development category; Get list of computers connected to the local network...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C# Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-24-2007, 12:03 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Question Get list of computers connected to the local network

Get list of computers connected to the local network
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-24-2007, 12:06 AM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 633
oxygen is on a distinguished road
Default Re: Get list of computers connected to the local network

using System.DirectoryServices
....
....

DirectoryEntry objDE = new DirectoryEntry("LDAP://" + DomainName);
DirectorySearcher objSearcher = new DirectorySearcher(objDE);
objSearcher.Filter = ("(ObjectClass=computer)");
string strMachines = "";

foreach (SearchResult objItem in objSearcher.FindAll())
strMachines += objItem.GetDirectoryEntry().Name.ToString() + "\n";
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Local DNS Problem qaz555 Networking & Internet Connectivity 2 07-13-2008 12:07 AM
How To Secure Network arjkhanna Networking & Internet Connectivity 5 01-21-2008 09:59 AM
Difference between my and local? vadivelanvaidyanathan Perl 1 07-30-2007 07:37 AM
Local Delivery queue vigneshgets Operating Systems 1 07-18-2007 04:48 AM
My Favorite Thing About Computers Is? jewels644 The Lounge 5 05-01-2007 03:55 PM


All times are GMT -7. The time now is 10:44 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0