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'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"><<a href="mailto:youness.alaoui@collabora.co.uk">youness.alaoui@collabora.co.uk</a>></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's not easy to implement, so that's<br>
why you'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 "Next message" 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>
> Hi all,<br>
><br>
> my name is Tiago Sá, I am a junior researcher from Portugal and this is my first<br>
> mail to this list.<br>
> I have a NAT traversal problem to solve and I have been looking for a solution<br>
> during the last weeks, which, as I found out, is not so trivial as I thought before.<br>
> As stated on the libnice homepage, libnice seems to be what I am looking for:<br>
><br>
> "ICE is useful for applications that want to establish peer-to-peer UDP data<br>
> streams. It automates the process of traversing NATs and provides security<br>
> against some attacks. It also allows applications to create reliable streams<br>
> using a TCP over UDP layer."<br>
><br>
><br>
> I have been looking for the provided documentation and I am feeling kind of lost.<br>
> Is there any example application or tutorial to get started?<br>
> Could you please share a basic application of this kind or point me a direction?<br>
><br>
><br>
> Thanks in advance for your help.<br>
><br>
> Regards,<br>
> Tiago Sá<br>
><br>
> --<br>
> Tiago Sá<br>
> Universidade do Minho, Braga - Portugal<br>
><br>
</div></div>> <a href="http://about.me/tiagosa/" target="_blank">http://about.me/tiagosa/</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>
<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>