https://www.everythingaccess.com/tutorials.asp?ID=Get-all-IP-Addresses-of-your-machine
WMI (Windows Management Instrumentation) :
Public Function getMyIP()
Dim myWMI As Object, myObj As Object, Itm
Set myWMI = GetObject("winmgmts:\\.\root\cimv2")
Set myObj = myWMI.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True")
For Each Itm In myObj
getMyIP = Itm.IPAddress(0)
Exit Function
Next
End Function
Odkazy :
https://p2p.wrox.com/access-vba/42695-retrieve-system-information-vba.html
https://stackoverflow.com/questions/828496/how-to-retrieve-this-computers-ip-address/949986#949986citovat