Home Forums ActiveX components Other ActiveX components Is it possible to retrieve the local IP of the machine where my application is running?

Viewing 1 post (of 1 total)
  • Author
  • User (Old forums)
    Post count: 23064
    #43161 |

    If you want to get the exact IP address, you will need to do something like the following:

    Dim xAddrManager As New AddressManager
    Dim xAddrs As Addresses

    Set xAddrs = xAddrManager.GetLocalAddresses(wafInet)

    Dim xAddr As Address

    For Each xAddr In xAddrs
       Debug.Print (xAddr.GetAddressString)
    Next xAddr

    Keep in mind that a computer can have more than one IP address!

    Imported from legacy forums. Posted by Xceed admin (had 1491 views)

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.