Pony99CA Posted June 30, 2007 Posted June 30, 2007 I have a PERL script where I'd like to get the visitor's IP address. How do I do that in PERL? I realize that proxies mean that I might not be getting their true IP address, but I don't much care about that. If you can get both the external and true IP addresses, that would be best, but not required. Thanks for any ideas, Steve Quote
Pony99CA Posted June 30, 2007 Author Posted June 30, 2007 Try $ENV{REMOTE_HOST} or $ENV{REMOTE_ADDR} REMOTE_ADDR worked and showed my IP address, but REMOTE_HOST didn't show my host name. IP Chicken does show my host name. It's not a big deal, though. Thanks for the information, Steve Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.