in reply to Re: How to determine IP address of a remote connection?
in thread How to determine IP address of a remote connection?
I tried peerhost() and got what I was looking for:
my $IP = $SMTP->peerhost(); print "Connected to $IP\n";
It prints the IP address of the remote host as expected, and each run of the program shows a different IP, which all map back correctly to the original hostname.
Thanks for the help!
Zucan
|
|---|