On Tue, Dec 6, 2016 at 6:08 PM, René J.V. Bertin <[email protected]>
wrote:

> A long time ago I wrote an application that returns the name (or IP) of
> the host you're logged in from. I don't think I ever got it to work
> reliably on modern Linux and OS X machines


Unless things are configured to log to wtmp by IP address, these stopped
working when hostnames got too long. OS doesn't matter. (wtmp has to set a
length limit, and good luck reconstructing from a prefix. It's been tried
many times and is pretty much impossible.)

-- 
brandon s allbery kf8nh                               sine nomine associates
[email protected]                                  [email protected]
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net

Reply via email to