Results 1 to 8 of 8

Thread: How to get all PC's IPs connected over a LAN on the same Workgroup [VB.NET]

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2008
    Posts
    16

    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 ??


    Thanks
    Paolo

  2. #2

  3. #3
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    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.
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  4. #4
    PowerPoster Deepak Sakpal's Avatar
    Join Date
    Mar 2002
    Location
    Mumbai, India
    Posts
    2,424

    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.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Jun 2008
    Posts
    16

    Resolved 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!
    Attached Files Attached Files

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Jun 2008
    Posts
    16

    Question 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

  7. #7
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    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?
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  8. #8

    Thread Starter
    Junior Member
    Join Date
    Jun 2008
    Posts
    16

    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!!!
    Let me know! Thanks in advance!

    Paolo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width