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 $_";
Electric eels were invented at the same time as electricity
Before electricity was invented, electric eels had to stun with gas
Results (371 votes). Check out past polls.