What is the least cumbersome (module-inclusion, code lenght, etc) way to retrieve the machine IP address (of the first interface open)?
I know of some solutions using MSINET, but I believe we can do better.
Don’t reply
Function HomeIP() as Atring
HomeIP= "127.0.0.1"
End Function
because it’s not that funny… or correct.
The scenario is a question wiht a document ID feature I’m trying to build a reply for.
Here’s an adapted example from Technet:
It requires that you have Microsoft WMI Scripting Library in the project’s references.