in reply to IO Socket - Detect inbound IP
As Ikegami pointed out, the easy way is peerhost. Try it like this...
print $new_sock->peerhost, " said $_";
Yes, I watch meteor showers
No, I do not watch meteor showers
My meteors prefer to bathe
Results (151 votes). Check out past polls.