<div dir="ltr">I found that it can take a long time if I leave libnice to figure out my local interfaces. If I tell which local address I want to use, it's a lot faster. But that may have been because it tried to use a local interface that had no internet connection. Maybe see if `nice_agent_add_local_address` does anything for you.<br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 15, 2015 at 6:01 PM, tom chen <span dir="ltr"><<a href="mailto:chentom60@hotmail.com" target="_blank">chentom60@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>





<div lang="EN-US" style="PADDING-TOP:15px;PADDING-LEFT:10px;PADDING-RIGHT:10px" link="#0563c1" vlink="#954f72" name="Compose message area">
<div>Hello,<u></u><u></u></div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I am using an external public STUN server, 
<a href="http://stun.l.google.com" target="_blank">stun.l.google.com</a>(74.125.194.127), port: 19302, to try 
/examples/simple-example.c. </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">simple-example can get its public IP as expected from this 
STUN server, so the public STUN server really works. However, I notice that, 
somehow, it takes around 3 second to get local candidate list. Any idea why so 
long? Then I installed a local STUN server in our intranet, still has same 
delay. I am wondering if there is anything waiting for some events during 
the gathering but always timeout? <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Tom<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">tao@ubuntu:~/workspace/libnice-0.1.13/examples$ 
./simple-example 1 74.125.194.127 19302<u></u><u></u></p>
<p class="MsoNormal">Copy this line to remote client:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">  vPRk owHFru8Z6Dx8hj9TKel7Zl <u></u><u></u></p>
<p class="MsoNormal">1,<a href="tel:2013266431" value="+12013266431" target="_blank">2013266431</a>,fe80::20c:29ff:fe34:d0c8,42411,host 
<u></u><u></u></p>
<p class="MsoNormal">2,1019216383,fe80::20c:29ff:fe34:d0c8,0,host <u></u><u></u></p>
<p class="MsoNormal">3,1015022079,fe80::20c:29ff:fe34:d0c8,50240,host 
<u></u><u></u></p>
<p class="MsoNormal">4,<a href="tel:2013266431" value="+12013266431" target="_blank">2013266431</a>,fe80::20c:29ff:fe34:d0be,51731,host 
<u></u><u></u></p>
<p class="MsoNormal">5,1019216383,fe80::20c:29ff:fe34:d0be,0,host <u></u><u></u></p>
<p class="MsoNormal">6,1015022079,fe80::20c:29ff:fe34:d0be,43916,host 
<u></u><u></u></p>
<p class="MsoNormal">7,<a href="tel:2013266431" value="+12013266431" target="_blank">2013266431</a>,fe80::20c:29ff:fe34:d0b4,35004,host 
<u></u><u></u></p>
<p class="MsoNormal">8,1019216383,fe80::20c:29ff:fe34:d0b4,0,host <u></u><u></u></p>
<p class="MsoNormal">9,1015022079,fe80::20c:29ff:fe34:d0b4,51142,host 
<u></u><u></u></p>
<p class="MsoNormal">10,<a href="tel:2013266431" value="+12013266431" target="_blank">2013266431</a>,192.168.0.60,33635,host <u></u><u></u></p>
<p class="MsoNormal">11,1019216383,192.168.0.60,0,host <u></u><u></u></p>
<p class="MsoNormal">12,1015022079,192.168.0.60,51301,host <u></u><u></u></p>
<p class="MsoNormal">13,<a href="tel:2013266431" value="+12013266431" target="_blank">2013266431</a>,172.16.1.129,41734,host <u></u><u></u></p>
<p class="MsoNormal">14,1019216383,172.16.1.129,0,host <u></u><u></u></p>
<p class="MsoNormal">15,1015022079,172.16.1.129,46629,host <u></u><u></u></p>
<p class="MsoNormal">16,<a href="tel:2013266431" value="+12013266431" target="_blank">2013266431</a>,10.113.54.60,41481,host <u></u><u></u></p>
<p class="MsoNormal">17,1019216383,10.113.54.60,0,host <u></u><u></u></p>
<p class="MsoNormal">18,1015022079,10.113.54.60,33328,host <u></u><u></u></p>
<p class="MsoNormal">19,1677722111,204.96.168.3,41481,srflx 
       <span style="FONT-FAMILY:Wingdings">ç</span> Public IP candidates<u></u><u></u></p>
<p class="MsoNormal">20,847249919,204.96.168.3,0,srflx <u></u><u></u></p>
<p class="MsoNormal">21,843055615,204.96.168.3,33328,srflx<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Enter remote data (single line, no wrapping):<u></u><u></u></p>
<p class="MsoNormal">> ^C<u></u><u></u></p></div><br>
<hr>
<font color="gray" size="1" face="Arial"><br><br>Statement Of 
Confidentiality:<br><br>This electronic message transmission, and all 
attachments, contains information from Extron Electronics which is confidential 
and privileged. The information is for the exclusive viewing or use of the 
intended recipient. If you are not the intended recipient, be aware that any 
disclosure, copying, distribution or use of the contents of this information is 
prohibited. If you have received this electronic transmission in error, please 
notify the sender immediately by a "reply to sender only" message and destroy 
all electronic and hard copies of the communication, including 
attachments.<br></font></div>
<br>_______________________________________________<br>
nice mailing list<br>
<a href="mailto:nice@lists.freedesktop.org">nice@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/nice" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/nice</a><br>
<br></blockquote></div><br></div></div>