Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 $_"; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://884262]
help
Chatterbox?
[choroba]: which lessons?

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2017-09-25 10:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (279 votes). Check out past polls.

    Notices?