In your CGI script, use:
 
$ip=$ENV{REMOTE_ADDR};
 
That will return the IP address of whomever is viewing the page
-----Original Message-----
From: David Lewis [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 16, 2000 3:36 PM
To: Perl-Win32-Users Mailing List
Subject: Networking

I need to write a Perl CGI script that can get the IP address of a machine that accesses a certain web page.  It would be best if it were portable to other platforms.  Thanks
    Dave Lewis

Reply via email to