Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: IO Socket - Detect inbound IP

by rowdog (Curate)
on Jan 26, 2011 at 00:48 UTC ( #884262=note: print w/ replies, xml ) Need Help??


in reply to IO Socket - Detect inbound IP

As Ikegami pointed out, the easy way is peerhost. Try it like this...

while(<$new_sock>) { print $new_sock->peerhost, " said $_"; }


Comment on Re: IO Socket - Detect inbound IP
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://884262]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2014-11-28 15:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (197 votes), past polls