<p>I understand what you are saying, but my point is that it works for me on Win7 and OS X. Those machines have wired interfaces and WiFi, only the WiFi is active. Win7 and FreeBSD are on the same box. It works for Win7, not FreeBSD.</p>

<p>I was wondering what happens when the routine finds two active interfaces, but for anything other than a router that would be unlikely, if not dangerous.</p>
<p>Gary Dunn<br>
Open Slate Project<br>
<a href="http://openslate.org">http://openslate.org</a></p>
<p><blockquote type="cite">On May 17, 2011 9:13 AM, &quot;Levente Uzonyi&quot; &lt;<a href="mailto:leves@elte.hu">leves@elte.hu</a>&gt; wrote:<br><br><p><font color="#500050">On Tue, 17 May 2011, Gary Dunn wrote:<br><br>
&gt; Mantis 7624. Originally reported as an error pulling out a ...</font></p>
The primitive can&#39;t work correctly, because it only returns one local address, but a host can have any number of such addresses. If you bring up a new network interface, then the primitive will return the address of the new interface (on windows), so using this primitive from different parts of the same program can result in unexpected behavior.<br>

<br>
<br>
Levente<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
-- <br>
Gary Dunn<br>
Honolulu<br>
<br>
<br>
</blockquote>
<br>
</blockquote></p>