Listing computers in the local network

  • Thread starter Thread starter Doly Garcia
  • Start date Start date
D

Doly Garcia

I'm writing an application in VB .NET that, at one point, should list
all the computers in the local network in a listbox. The problem is
that I want it to work in any kind of network (doesn't necessarily
have Active Directory). I have tried looking in all the IP addresses
that have the same beginning as the computer the application is
running in, but I find that when an IP address doesn't correspond to
any computer, Dns.Resolve is very slow.
I'd appreciate it if the answers came in the form of code snippets or
links to pages that explain the issue. I'd also appreciate it if the
solutions weren't overkill. I just want a list of computer names in a
listbox, nothing else!
 
Back
Top