Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2011
    Posts
    1

    Unanswered: Ip address for LAN only

    Hi,

    I am trying to get IP address from local computer. I came accross the function "getipaddresses", it works good. Only problem is it gets all the available ip address (even the vpn ip address, when connected). I just need ethernet adapter local area connection ip address (NOT MAC address).

    I tried to read the function, but new to programing so cann't understand the steps in detail. Is there any other way to get the ethernet adapter IP address only?

    Any help is really appreciated.

    Thanks
    PM

  2. #2
    Join Date
    Oct 2003
    Location
    London
    Posts
    341
    I've been using this for a while. I have absolutely no idea what it means but it worked, so I never questioned it.

    On a form I have

    Code:
    Private Sub Command01_Click()
    Me.Text01.Value = GetIPAddress
    End Sub
    You also need to put a larger piece of code onto a module but since it's so long I've attached it as a txt document. Create a new module and paste the lot into it.
    Attached Files Attached Files

Posting Permissions

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