In that case it would have to be called twice... once for each.
Type: Posts; User: CommonTater
In that case it would have to be called twice... once for each.
Take a look at the docs... GetAddressInfo(), far as I know is an IPv4 function. IPV6 has it's own separate function... Plus precious few LANS are running ipv6 right now, routers and switches more...
Just use the computer's name... My computers are named Volts, Amps, Watts, Joules and Ohms... So the Name parameter below would be simply "Amps" to get it's IP.
BUT...
You have to be using...
How are you formatting the name?
Do you have DNS on your router/switch?
What are you using as your Primary DNS...
For it to resove LAN addresses you have to be using the DNS in your router......