LPM: getting ips

Ronald Edward Petty repett0 at sweb.uky.edu
Mon Mar 19 13:44:02 CST 2001


I was running it in a cgi bin... hum

On Mon, 19 Mar 2001, David Pitts wrote:

>
> That environment variable is passed as a part of the CGI, if you are running
> the script from command line you will not get the IP.
>
> Thanks,
>
> David Pitts
> http://www.dpitts.com
>
> ----- Original Message -----
> From: "Ronald Edward Petty" <repett0 at sweb.uky.edu>
> To: <lexington-pm-list at happyfunball.pm.org>
> Sent: Monday, March 19, 2001 2:38 PM
> Subject: Re: LPM: getting ips
>
>
> >
> > Any reason why there would be no ip shown?  I get Your IP Address =
> >
> > and that is all
> > ron
> >
> > On Mon, 19 Mar 2001, Gregg Casillo wrote:
> >
> > > This simple CGI script should do the trick:
> > >
> > > #!/usr/bin/perl
> > >
> > > print "Content-type: text/html\n\n";
> > > print "Your IP Address = $ENV{REMOTE_HOST}";
> > > __END__
> > >
> > >
> > > Gregg Casillo
> > > Web Programmer, KET
> > >
> > >
> > > Ronald Edward Petty wrote:
> > >
> > > > anyone have a script to show how to get a visitor ip for netscape and
> ie?
> > > > I can't seem to get one for both to work...
> > > > ron
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
>




More information about the Lexington-pm mailing list