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