Get the IP address of all the PC in a workgroup

I am making an application in vb.net.

In that i need to get the list of the IP addresses of all the PCs that are running in the Workgroup.

So how can i get that list by coding

Thanks in advance




Answer this question

Get the IP address of all the PC in a workgroup

  • Alex_Petrovic

    First You can get computer list of Computers on your network suing P/Invoke and netapi32.dll functions and then you can loop through all computer names and use Dns class to get IP Address of each!

    Here is way how to get computer names of all available computers on the Network:

    http://www.codeproject.com/cs/internet/ListNetworkComputers.asp

    I hope this will work!

    Best Regards,



  • Denis Pitcher

    thanks dude

    It works perfectly



  • Get the IP address of all the PC in a workgroup