Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: IO Socket - Detect inbound IP

by Anonymous Monk
on Jan 25, 2011 at 19:31 UTC ( [id://884211]=note: print w/replies, xml ) Need Help??


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

no luck, it returned binary garbage that once converted to ascii read 512.

I haven't checked the documentation, but binary garbage usually means a packed address, so to get dotted octet form (a.b.c.d), you need to use Socket::inet_ntoa

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-25 14:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found