<div dir="ltr">Specifically it&#39;s in src/switch_utils.c:1408 switch_find_local_ip()<div><br></div><div>Reading the code shows that setting the variables force_local_ip_v4 or force_local_ip_v6 will use the value you set instead of autodetecting, should you want to avoid the behaviour you&#39;ve seen.</div>

<div><br></div><div>I&#39;m not sure the origin of the IPv4 address, but the IPv6 one is one of the root DNS servers.</div><div><br></div><div>Looking at the source appears to confirm my previous statement... it creates a UDP socket and then calls connect to set the destination for packets, but it never actually sends any - just uses getsockname to see which IP it locally bound to.</div>

<div><br></div><div>-Steve</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 24 March 2014 00:59, Steven Ayre <span dir="ltr">&lt;<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Oh, and both IP and port are hardcoded in the source code.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra">

<br><br><div class="gmail_quote">On 24 March 2014 00:58, Steven Ayre <span dir="ltr">&lt;<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">It&#39;s FreeSWITCH trying to automatically detect the ${local_ipv4} and ${local_ipv6} values.<div><br>

</div>
<div>It does this by attempting to send a packet to an IP it knows will have to go over the Internet and seeing which local IP the packet would leave the machine from. That means if you have multiple IPs assigned to your machine it&#39;ll know which one will send via the default gateway. That handles the simple single-homed case anyway.</div>



<div><br></div><div>It doesn&#39;t really matter whether NAT happens or not, it works just as well if your machine is listening on the public IP natively.</div><div><br></div><div>It&#39;s just trying to auto-detect what IP you&#39;re most likely to be reachable on.</div>



<div><br></div><div>Try a packet trace... from memory it only creates the socket, doesn&#39;t actually send the packet (?). But I may be wrong there.</div><div><br></div><div>-Steve</div></div><div><div>
<div class="gmail_extra"><br>
<br><div class="gmail_quote">On 23 March 2014 02:32, Terry Barnum <span dir="ltr">&lt;<a href="mailto:terry@digital-outpost.com" target="_blank">terry@digital-outpost.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



While playing with freeswitch yesterday, Little Snitch reported<br>
that freeswitch immediately upon launch tries to establish a connection to 82.45.148.209 and 2001:503:ba3e::2:30 on port 4242.<br>
<br>
A whois shows the ipv4 to be from Telewest Broadband in the UK.<br>
<br>
The only port 4242 setting I find is in  conf/autoload_configs/event_multicast.conf.xml but for 225.1.1.1.<br>
<br>
Blocking the connection prevents sofia from registering with flowroute so I&#39;m curious what it is. I couldn&#39;t find any relevant search results.<br>
<br>
FreeSWITCH Version 1.5.11b+git~20140301T003717Z~f2331de68b~64bit (git f2331de 2014-03-01 00:37:17Z 64bit)<br>
<br>
Thanks,<br>
-Terry<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>