By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,885 Members | 1,469 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,885 IT Pros & Developers. It's quick & easy.

Listing neighbor computers

P: n/a
Hello everybody,

how can I get the names of all neighbor computers in my local network ?

Thanks in advance
Nov 22 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
If you can use ADSI it is as easy as:
DirectorySearcher src = new DirectorySearcher("(objectClass=computer)");
foreach(SearchResult res in src.FindAll())
{
Console.WriteLine(res.Path);
}

--------------------
| From: "Moukarram Kabbash" <no****@nospam.com>
| Subject: Listing neighbor computers
| Date: Thu, 5 Feb 2004 11:50:13 +0100
| Lines: 7
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <uk**************@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.dotnet.general
| NNTP-Posting-Host: vpw.wh.uni-dortmund.de 129.217.129.134
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTN GP08.phx.gbl!TK2MSFTNGP11.
phx.gbl
| Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.general:123777
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| Hello everybody,
|
| how can I get the names of all neighbor computers in my local network ?
|
| Thanks in advance
|
|
|

Nov 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.