.NET Framework Bookmark and Share   
 index > .NET Framework Networking and Communication > Finding active computers in my local area network.
 

Finding active computers in my local area network.

I am writing an app to display the active POS stations that can be seen from a PC. It is likely that station names will be duplicated but they will always occur in seperate "subnets". For example Windows explorer would show

Windows Network

Subnet1

Station 1

Station 2

Subnet2

Station 1

Station 2

I can easily ping Station 1 if there is only one, but how can I force Ping and the othermethods in System.Net and System.Net.NetworkInformation tooperate onSubnet2.Station1or Subnet1.Station1 as needed. I think if I can force Ping to work the other problems might be solved. Thanks

tpack
I think the framework might have something in the system.directoryservices namespace that can help you find active computers on the network.

A less attractive option would be to broadcast ping the subnets and see who replies.
swax

Thanks for the directoryservices option. I don't think it will work for me because the OS on the POS terminals do not run active directory and as I understand the docs directoryservices only works with Active Directory. When I look on the POS domains for computers I get an error stating that the server is not operational using both LDAP and WinNT.

Will try the ping method barring afurther suggestions.

tpack

If you know the names then you should be able to ping them.
If you end up with duplicate names [how is this possible?] then
you might want to ping them by the IPAddress.

Durgaprasad Gorti

I will not know the names. They are user programmable. Is there a way to use the workgroup and name to determine the IP address?

Thanks

tpack
I think the framework might have something in the system.directoryservices namespace that can help you find active computers on the network.

A less attractive option would be to broadcast ping the subnets and see who replies.
swax

Thanks for the directoryservices option. I don't think it will work for me because the OS on the POS terminals do not run active directory and as I understand the docs directoryservices only works with Active Directory. When I look on the POS domains for computers I get an error stating that the server is not operational using both LDAP and WinNT.

Will try the ping method barring afurther suggestions.

tpack

You can use google to search for other answers

Custom Search

More Threads

• Grasp text of one textbox in a webpage
• Pressing a Button
• Possible to connect to SQL server hosted elsewhere?
• Outlook App in Virtual Directory
• Exchange, webdav & fax
• Remote PC access
• Problem using URI with FTP and DownloadFile
• How to work with mail attachment and MemoryStream.
• Keeping inactive socket open
• FTP Error: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.