As Ikegami pointed out, the easy way is peerhost. Try it like this...
while(<$new_sock>) { print $new_sock->peerhost, " said $_"; }
In reply to Re: IO Socket - Detect inbound IP
by rowdog
in thread IO Socket - Detect inbound IP
by sans-clue
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |