[REBOL] Re: How to get allocated ip number
From: michel:goasampis:free at: 17-Oct-2002 22:03
Thanks a lot, all !
I'm surprise and grateful for the time you spend for this question.
To "ping" a web server's port (Gabriele's answer) seems to be an
efficient solution to get one active ip address among the possible
interfaces a pc handles, and is, finally, appropriate to my purpose.
Otherwise, the discussion about the different network situations
(consequently about the differents interface's names) was verry
enlightening, showing the difficulty to develope cross platform
On this subject, if I need to get one working local network ip,
do you think the following code is usefull for all platform ?
print read foo: rejoin [dns:// read dns://]
If it is, I can also surely get either local network or internet ip,
and it's fine !
Michel, less newbie than yesterday