How to get all PC's IPs connected over a LAN on the same Workgroup [VB.NET]
Hi everyone, i've checked out around the forum something about this question, but the answers i've found didn't satisfied me, so I decided to open a new thread.
I have a PC connected to my LAN with other PCs, under the same WorkGroup called "Workgroup" (!!). The first question is: how to get all PC's IP address connected to the LAN belonging to my workgroup from a Client PC ?? :confused:
Thanks :wave:
Paolo
Re: How to get all PC's IPs connected over a LAN on the same Workgroup [VB.NET]
Re: How to get all PC's IPs connected over a LAN on the same Workgroup [VB.NET]
Deepak, that doesnt get all the IPs of each PC on the network. That just gets all of the IPs on the local PC.
Re: How to get all PC's IPs connected over a LAN on the same Workgroup [VB.NET]
Quote:
Originally Posted by chris128
Deepak, that doesnt get all the IPs of each PC on the network. That just gets all of the IPs on the local PC.
Thanks for correcting me. I have removed that code.
1 Attachment(s)
Re: How to get all PC's IPs connected over a LAN on the same Workgroup [VB.NET]
yes, Deepak. Thanks for the code... but as chris said to you it gives me only the local name of my PC ....
I found ... searching on the forum a thread about this issue that resolves my question. 'RobDog888' gets the solution with a class ( I post here so in case someone needs it !!).
Thanks so much!
Re: How to get all PC's IPs connected over a LAN on the same Workgroup [VB.NET]
Sorry.... i would like more about this code... so if someone could give me some explanation....!!
Thanks again!
Paolo
Re: How to get all PC's IPs connected over a LAN on the same Workgroup [VB.NET]
What do you want to know? How far have you got?
Re: How to get all PC's IPs connected over a LAN on the same Workgroup [VB.NET]
<StructLayout(LayoutKind.Sequential)> _
Public Structure SERVER_INFO_100
Dim sv100_platform_id As Integer
Dim sv100_name As Integer
End Structure
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> _
Public Structure SERVER_INFO_101
Dim dwPlatformID As Integer
Dim lpszServerName As String
Dim dwVersionMajor As Integer
Dim dwVersionMinor As Integer
Dim dwType As Integer
Dim lpszComment As String
End Structure
I would like to know what does means these lines, in particular this "<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> _". It seems like a c++ template declaration ...
It's just a curiosity!!! :D
Let me know! Thanks in advance!
Paolo