PDA

Click to See Complete Forum and Search --> : Getting IP Address


hozo
Aug 21st, 2000, 03:57 PM
How do I get all IP address of the current machine?

I tried being lazy and using the inet control with the .hostip but obvioius that only returns one address.

parksie
Aug 21st, 2000, 04:31 PM
Do you mean the IP addresses of all network adapters?
It's in the Winsock API somewhere. Check MSDN / planetsourcecode for more details.

SteveCRM
Aug 21st, 2000, 04:50 PM
msgbox Winsock.Localip

the api one is about 100 lines, I like the one liner

hozo
Aug 21st, 2000, 05:37 PM
Parskie, a network adapater is just that.. a "channel" of where information goes, this can be a physical NIC or a virtual dr like a DUN connection (PPP ADAPTER).. I will look for the code..

Steve: Learn to read the msg in full before replying.

SteveCRM
Aug 21st, 2000, 05:44 PM
Woops, sorry ;)

SteveCRM
Aug 21st, 2000, 08:49 PM
Okay Im going to take another shot at this...you can have a small program on each machine that figures out its own IP address and sends it to every other machine on the network. Really sorry If this still doesn't help you. :(