check the remote_ip address from perl ?

how to i get the remote ip address from perl ?
loongAsked:
Who is Participating?
 
struppiConnect With a Mentor Commented:
i did work hard for the five points ;-) but didn't receive them till know.
0
 
ozoCommented:
Who's remote ip address?
0
 
loongAuthor Commented:
visitor visit my web site

remote_addr
remote_host


0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
ozoCommented:
$ENV{REMOTE_ADDR}
0
 
struppiCommented:
$addr = $ENV{'REMOTE_ADDR'};
use Socket;
            
my $host = gethostbyaddr(inet_aton($addr), AF_INET);


0
 
loongAuthor Commented:
thank
0
All Courses

From novice to tech pro — start learning today.