[REBOL] Re: IDENT
From: holger:rebol at: 2-Feb-2001 12:34
On Fri, Feb 02, 2001 at 01:54:46PM -0600, Paul Tretter wrote:
> I was wondering if there is a way to use REBOL to determine the ip addresses currently
connected to my local machine if its acting as a proxy. I believe the answer is no but
was interested how I might determine that or another language that could do that and
interface with REBOL by means of exchange that data via a tcp port.
Do you mean the IP address of the remote end of a connected TCP port ? You can find that
in port/remote-ip. The IP address of the local end of the connection is in port/local-ip.
Additionally there are port/remote-port and port/local-port for the port numbers.
Or are you trying to find the IP addresses assigned to the interfaces of your machine
?
With current experimentals try "get-modes udp:// 'interfaces". This returns a block of
objects that contain network configuration paramenters, including IP addresses.
Works with most operating systems (not with BeOS and Elate though).
--
Holger Kruse
[holger--rebol--com]