in reply to Determine ip address/hostname of requesting host
Personally, I like the remote_host() command, (which you can get from reading the CGI documentation):
use strict; use warnings; use CGI qw/:standard/; use CGI::Carp qw(fatalsToBrowser); my $ipaddr = remote_host(); # Now log the address $ipaddr ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Determine ip address/hostname of requesting host
by blue_cowdawg (Monsignor) on Sep 21, 2006 at 20:52 UTC | |
by liverpole (Monsignor) on Sep 21, 2006 at 21:05 UTC |