Enumerating network resources

  • Thread starter Thread starter Kruchy
  • Start date Start date
K

Kruchy

Hello,

I have one little question. How can I enumerate resources in LAN where is my
mobile device connected? I'm using C#, compact framework and OPNETCF. I need
information about computers with shared printers or network printers.



Thanks in advance for any suggestion.

Lukasz



PS. Sorry for my English.
 
Something like the following should work:

IPHostEntry ipHost = Dns.GetHostEntry(Dns.GetHostName());
foreach (System.Net.IPAddress address in
ipHost.AddressList)
{
//Display all connected endpoints...
}
 
Back
Top