<div dir="ltr">Hi Tim,<br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 16, 2015 at 4:40 PM, tim Rowledge <span dir="ltr">&lt;<a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Somebody noticed that asking for the local address on a Pi vm returns 127.0.1.1 these days, whereas on my iMac it returns the actual machine IP. That’s a much more useful thing.<br></blockquote><div><br></div><div>can you post the contents of /etc/hosts on your machine?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The Smalltalk code is in NetNameResolver class&gt;&gt;localHostAddress, using prim SocketPlugin.c-&gt;primitiveResolverLocalAddress() etc. Running this under gdb shows me that we are finding the machine’s local name ok (‘Pi-2’ in this case) but that sqResolverLocalAddress() is using nameToAddr() and being told “127.0.1.1” - well strictly speaking 0x7f000101 of course. I’ve tried `man nameToAddr` and googling nameToAddr and got.. nothing. I don’t even seem to find it listed in a header file out there.  Whah?<br>
<br>
Puzzled in Qualicum...<br>
<br>
tim<br>
--<br>
tim Rowledge; <a href="mailto:tim@rowledge.org">tim@rowledge.org</a>; <a href="http://www.rowledge.org/tim" rel="noreferrer" target="_blank">http://www.rowledge.org/tim</a><br>
Useful random insult:- An 8086 in a StrongARM environment.<br></blockquote></div><br><div class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div></div>