[Nice] udp hole punching guide
youness.alaoui at collabora.co.uk
Thu Oct 6 13:47:02 PDT 2011
You can view my slides for a talk I did about libnice at GCDS 2009 :
Although it might be missing some things since the slides were minimal and most
of the explaining was done orally.
As for your test code, first of all, there won't be any 'hole punching' if you
use 127.0.0.1, and I just tested it, it worked fine. If you remove the call to
nice_agent_add_local_address to make it only use the localhost, then it will
find a server reflexive candidate (if you have upnp) and do the stun discovery
too. Also, the stun-server parameter you gave it is wrong, read the
documentation, it clearly states that it requires the IP address (not the
hostname) for the stun-server property.
Finally, if you only want to do UDP hole punching, you only need to use stun,
not libnice. libnice is used for peer-to-peer communication where you have a
third party server to exchange candidates. If you only need hole punching, then
use the stun library (comes with libnice) directly, it should be much easier.
On 10/06/2011 11:44 AM, Riccardo Colamatteo wrote:
> Hi to all,
> I'm looking for an udp hole punching guide, or how to/book, about udp
> hole punching via libnice.
> Can you help me, please?
> I also have trouble with the attached example....
> Thanks to all
> 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