[REBOL] Re: Ip adress
From: g:santilli:tiscalinet:it at: 9-Jan-2003 11:34
Hi bryan,
On Thursday, January 9, 2003, 10:00:48 AM, you wrote:
b> All the methods discussed so for about IP address return my local
b> machine's IP address, which I'm not particularly interested in, what I'm
b> thinking about is to find what domain(s) my local machine is in, and
port: open tcp://www.rebol.com:80
local-ip: port/local-ip
close port
If you have multiple network interfaces, this gives you the
address of the interface your OS is using to route packets to
www.rebol.com. Of course, you could use any other "external"
address.
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r