Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^5: IO Socket - Detect inbound IP

by ikegami (Pope)
on Jan 25, 2011 at 22:06 UTC ( #884239=note: print w/replies, xml ) Need Help??


in reply to Re^4: IO Socket - Detect inbound IP
in thread IO Socket - Detect inbound IP

Really? You're taking offense at "Don't blame the tool if you don't understand its output."? Well, I take offense at unfounded accusations, so I guess we're in the same boat.

$ perl -MIO::Socket::INET -E'say IO::Socket::INET->new(LocalPort=>6969 +, Listen=>1)->accept->peerhost' 192.168.3.58

Feel free to prove me wrong. "peerhost runs without error but do not return an ip address" doesn't cut it.

Update: Apparently, I was a little off about the return value from accept, but peerhost does work.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (2)
As of 2019-12-08 04:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (162 votes). Check out past polls.

    Notices?