> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Brutzman, Bill
> Sent: Wednesday, May 02, 2007 2:54 PM
> To: '[email protected]'
> Subject: RE: [U2] What's My IP Address ?
>
> How do I get the client's IP address?
On linux you can find this with the "who" command, but I don't know if
it works on all *nixes. This will work if your version of who supports
it:
EXECUTE 'SH -c "who am i"', OUT > WHO.AM.I
MY.IP = FIELD (FIELD (WHO.AM.I, ')', 1), '(', 2)
The IP will already be resolved to the host name if it's available via
DNS or /etc/hosts.
-John
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/