netwotk computers list

karthikeswar_rsl

New member
Joined
Nov 7, 2005
Messages
3
Programming Experience
Beginner
dear viewers,
i need a help from u.
i.e.,
QN : HOW TO DISPLAY THE NETWORK CONNECTED COMPUTERS IN VB.NET.?

FOR EXAMPLE : SYSTEM-1 , SYSTEM-2 AND SYSTEM-3 ARE CONNECTED IN A NETWORK WITH MY SYSTEM(SYSTEM-4).
I HAV VB.NET 2003 IN MY COMPUTER.HOW TO DISPLAY THE (COMPUTER NAMES AND IP addresses) - SYSTEM 1 to SYSTEM-3 WITHIN MY CODE.
 
I searched something myself, here's what I found on one site:

This will only work if you are connected to an active directory. Add
a reference to system.directoryservices. Replace NetworkName with your
network name.

VB.NET:
Dim de As New System.DirectoryServices.DirectoryEntry("LDAP://NetworkName")
Dim ds As New System.DirectoryServices.DirectorySearcher(de)
Dim r As System.DirectoryServices.SearchResult
ds.Filter = "(objectClass=computer)"
Try
For Each r In ds.FindAll
Dim s As String
Console.WriteLine(r.GetDirectoryEntry.Name.ToString)
Next
Catch e As Exception
Console.WriteLine(e.ToString)
End Try

BUT I think that this will list all connected and disconnected computers in active directory.
 
hello mani

hi mani,
thanks for ur code.
my project title is : INTRANET MESSENGER
HOW TO DO MY PROJECT?.
THATS Y I GIV THE "NETWORKED SYSTEMS LIST QUESTION".
WHAT IS ACTIVE DIRECTORY?.

1.HOW TO DISPLAY THE LIST OF COMPUTERS CONNECTED IN UR NETWORK.? I WANT THE COMPUTER NAMES ANS ITS IP ADDRESSES LIST ALSO.BUT HOW ?
I DO MY PROJECT IN VB.NET.
 
Back
Top