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
In reply to Re^2: How to determine IP address of a remote connection?
by Zucan
in thread How to determine IP address of a remote connection?
by Zucan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |