[Nice] Starting with libnice
youness.alaoui at collabora.co.uk
Wed Oct 19 14:53:47 PDT 2011
Welcome to the world of libnice :)
Yes, doing NAT traversal is far from being easy, the only solution is pretty
much to use the ICE specification and that's not easy to implement, so that's
why you'd need to use libnice.
For an example, you can have a look at the unit tests, like
tests/test-fullmode.c for example, although that does a lot of stuff. You can
see a quick example in the documentation for NiceAgent :
For smaller examples, you can look at the libnice mailing list archives, some
people posted their example code where they were having problems. For example, a
very simple example can be seen here :
But make sure to click on the "Next message" to read the whole thread because
that example had a bug that I explained how to fix in the following emails.
Same for this thread :
I hope that helps,
On 10/19/2011 09:58 AM, Tiago Sá wrote:
> Hi all,
> my name is Tiago Sá, I am a junior researcher from Portugal and this is my first
> mail to this list.
> I have a NAT traversal problem to solve and I have been looking for a solution
> during the last weeks, which, as I found out, is not so trivial as I thought before.
> As stated on the libnice homepage, libnice seems to be what I am looking for:
> "ICE is useful for applications that want to establish peer-to-peer UDP data
> streams. It automates the process of traversing NATs and provides security
> against some attacks. It also allows applications to create reliable streams
> using a TCP over UDP layer."
> I have been looking for the provided documentation and I am feeling kind of lost.
> Is there any example application or tutorial to get started?
> Could you please share a basic application of this kind or point me a direction?
> Thanks in advance for your help.
> Tiago Sá
> Tiago Sá
> Universidade do Minho, Braga - Portugal
> Nice mailing list
> Nice at lists.freedesktop.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 262 bytes
Desc: OpenPGP digital signature
More information about the Nice