Hi Youness,<div><br></div><div>I have been trying to create a simple application based on the first link you pointed before.</div><div>Thanks for the tips you gave me. I have a couple of questions though, if you can help me.</div>

<div><br></div><div>I need to find a way to get the remote candidates passed from a peer to another.</div><div>Can you point an easy way to do that?</div><div>Could I hardcode the remote candidates list, for testing purposes?</div>

<div><br></div><div>Right now, I only get two local candidates (HOST and SERVER_REFLEXIVE).</div><div>I am trying to use the numb TURN server, shouldn&#39;t I get a RELAYED candidate too?</div><div><br></div><div>I am attaching the code. Can you please have a look at the code and check where the error could be?</div>

<div><br></div><div>Thanks for helping!</div><div><br></div><div>Regards,</div><div>Tiago Sá</div><div><br></div><div><br><div class="gmail_quote">On Wed, Oct 19, 2011 at 10:53 PM, Youness Alaoui <span dir="ltr">&lt;<a href="mailto:youness.alaoui@collabora.co.uk">youness.alaoui@collabora.co.uk</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
Welcome to the world of libnice :)<br>
Yes, doing NAT traversal is far from being easy, the only solution is pretty<br>
much to use the ICE specification and that&#39;s not easy to implement, so that&#39;s<br>
why you&#39;d need to use libnice.<br>
<br>
For an example, you can have a look at the unit tests, like<br>
tests/test-fullmode.c for example, although that does a lot of stuff. You can<br>
see a quick example  in the documentation for NiceAgent :<br>
<a href="http://nice.freedesktop.org/libnice/NiceAgent.html" target="_blank">http://nice.freedesktop.org/libnice/NiceAgent.html</a><br>
<br>
For smaller examples, you can look at the libnice mailing list archives, some<br>
people posted their example code where they were having problems. For example, a<br>
very simple example can be seen here :<br>
<a href="http://lists.freedesktop.org/archives/nice/2011-January/000404.html" target="_blank">http://lists.freedesktop.org/archives/nice/2011-January/000404.html</a><br>
But make sure to click on the &quot;Next message&quot; to read the whole thread because<br>
that example had a bug that I explained how to fix in the following emails.<br>
Same for this thread :<br>
<a href="http://lists.freedesktop.org/archives/nice/2011-October/000434.html" target="_blank">http://lists.freedesktop.org/archives/nice/2011-October/000434.html</a><br>
<br>
I hope that helps,<br>
Youness.<br>
<div><div class="h5"><br>
On 10/19/2011 09:58 AM, Tiago Sá wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt; my name is Tiago Sá, I am a junior researcher from Portugal and this is my first<br>
&gt; mail to this list.<br>
&gt; I have a NAT traversal problem to solve and I have been looking for a solution<br>
&gt; during the last weeks, which, as I found out, is not so trivial as I thought before.<br>
&gt; As stated on the libnice homepage, libnice seems to be what I am looking for:<br>
&gt;<br>
&gt;     &quot;ICE is useful for applications that want to establish peer-to-peer UDP data<br>
&gt;     streams. It automates the process of traversing NATs and provides security<br>
&gt;     against some attacks. It also allows applications to create reliable streams<br>
&gt;     using a TCP over UDP layer.&quot;<br>
&gt;<br>
&gt;<br>
&gt; I have been looking for the provided documentation and I am feeling kind of lost.<br>
&gt; Is there any example application or tutorial to get started?<br>
&gt; Could you please share a basic application of this kind or point me a direction?<br>
&gt;<br>
&gt;<br>
&gt; Thanks in advance for your help.<br>
&gt;<br>
&gt; Regards,<br>
&gt; Tiago Sá<br>
&gt;<br>
&gt; --<br>
&gt; Tiago Sá<br>
&gt; Universidade do Minho, Braga - Portugal<br>
&gt;<br>
</div></div>&gt;  <a href="http://about.me/tiagosa/" target="_blank">http://about.me/tiagosa/</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Nice mailing list<br>
&gt; <a href="mailto:Nice@lists.freedesktop.org">Nice@lists.freedesktop.org</a><br>
&gt; <a href="http://lists.freedesktop.org/mailman/listinfo/nice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/nice</a><br>
<br>
<br>
<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" target="_blank">http://lists.freedesktop.org/mailman/listinfo/nice</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Tiago Sá<br>Universidade do Minho, Braga - Portugal<div><img src="http://wac.2659.edgecastcdn.net/802659/production80/images/icons/favicon.ico"> <a href="http://www.tiagosa.com" target="_blank">www.tiagosa.com</a><br>

</div><br>
</div>