Get Client IP Address?

Sarah Reichelt sarah.reichelt at gmail.com
Wed Apr 21 00:14:26 EDT 2010


On Wed, Apr 21, 2010 at 2:00 PM, Rick Harrison
<harrison at all-auctions.com> wrote:
> Hi there,
>
> I was wondering if there is a way to retrieve,
> and capture the IP address of a client
> connecting to the On-Rev server.
>
> A rev-script approach would be best if possible.


An On-Rev server script gets supplied with an array called $_SERVER
which contains lots of useful stuff.
Among the elements of this array is $_SERVER["REMOTE_ADDR"] which
contains the IP address of the client.

Check out <http://www.troz.net/onrev/samples/test.irev> for the other
elements in this array.

Cheers,
Sarah



More information about the use-livecode mailing list