On Sat, Mar 13, 2010 at 8:21 PM, John M McIntosh <span dir="ltr">&lt;<a href="mailto:johnmci@smalltalkconsulting.com">johnmci@smalltalkconsulting.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word">Ok, well I spent the evening looking into this. It&#39;s unclear if reverting the new/old socket stuff in Pharo is a good idea,<div>or if we just adjust things a bit in the name lookup that would solve things. There are two questions to resolve<br>
<div><br></div><div>(1) Do we want to return an IPV4 address from the network lookup? or an IPV6 address? </div><div>(2) What do we do when we have 2 or more active IP interfaces on the machine, prompt for which one to use? Pick one at random, use the first or last one? </div>
</div></div></blockquote><div><br></div><div>If you are resolving localhost, you should always translate to the loopback IP address 127.0.0.1 in IPv4, or ::1 in IPv6.  This is what wikipedia says about it at least (<a href="http://en.wikipedia.org/wiki/Localhost">http://en.wikipedia.org/wiki/Localhost</a>).</div>
<div>If you are resolving any other host (including the one the vm is running on), IMHO you should return the first one from the list returned by the DNS, or one at random, I don&#39;t see the difference.</div><div>I don&#39;t know understand why interfaces should matter at all.</div>
<div><br></div><div><br></div></div><div class="gmail_quote"><br></div><div class="gmail_quote"><br><div> </div></div>