Share via


how to detect Computer Name and their IP addresses On Lan vb?

Question

Wednesday, May 2, 2012 6:06 PM

Hi,

  I need codes to get Actives computer names with their IPs ON Lan ?

Thanks.

All replies (3)

Thursday, May 3, 2012 7:58 AM âś…Answered

Hi Gigidel,

Welcome to the MSDN forum.

I think Ellen gives you a good sample, if you not familiar with C# code, you can use the convertor on the internet: http://www.developerfusion.com/tools/convert/csharp-to-vb/

Here are other samples:

Get list of computer within a network: http://social.msdn.microsoft.com/forums/en-US/Vsexpressvb/thread/32031a1b-4b52-4bee-8a0c-9f1ecd8e83bf/

VB.NET List all Computers in Network/Workgroup: http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/87499508-63f3-40ec-a82e-14a6da3f3bed/

VB.NET List all Computers in Network/Workgroup: http://www.codeproject.com/Articles/9390/HostName-IP-and-MAC-Address

Hope this helps.

Mark Liu-lxf [MSFT]
MSDN Community Support | Feedback to us


Wednesday, May 2, 2012 7:06 PM

nmaps simplest approach is to just ping every IP in a range, in order, and see what responses you get.


Wednesday, May 2, 2012 7:38 PM

Hello,

I hope this helps

http://www.codeproject.com/Articles/16113/Retreiving-a-list-of-network-computer-names-using

regards Ellen

Ich benutze/ I'm using VB2008 & VB2010