[thelist] Showing a users IP address
Anthony Baratta
Anthony at Baratta.com
Fri Jan 25 11:37:01 CST 2002
At 09:34 AM 1/25/2002, Alan Lloyd wrote:
>Hi
>
>I just wondered if any one knows a script that will display a users IP
>address on screen.
>
>I can't seem to find one.
IP of the user is stored in a global variable called REMOTE_ADDR.
e.g.
ASP
Response.Write Request.ServerVariables("REMOTE_ADDR")
Perl
print $ENV{'REMOTE_ADDR'};
---
Anthony Baratta
President
Keyboard Jockeys
"Conformity is the refuge of the unimaginative."
More information about the thelist
mailing list