<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 6, 2016 at 6:08 PM, René J.V. Bertin <span dir="ltr"><<a href="mailto:rjvbertin@gmail.com" target="_blank">rjvbertin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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</blockquote></div><br>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.)<br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>brandon s allbery kf8nh sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a> <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</div></div>