Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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'

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?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2020-10-26 07:27 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (250 votes). Check out past polls.