[libnice] simple-example.c not working

Youness Alaoui kakaroto at kakaroto.homelinux.net
Tue Jun 10 21:27:23 PDT 2014


You can export NICE_DEBUG=all with the G_MESSAGES_DEBUG=all environment
variables to get full debugging messages from libnice.
It is possible that the two machines can't communicate for some reason.
although they seem to have the same IP address.
If you don't enable NICE_DEBUG=all, you'll at least see the state changes
from the simple-example program.


On Thu, Jun 5, 2014 at 1:47 AM, B Andrei <yo8tot at yahoo.com> wrote:

> Hi,
>
> I try to run the simple-example program to test hole punching between two
> computers. Unfortunately it is not possible to get a connection unless I
> run both sessions on the same machine. Please let me know if there is a way
> to debug or if you have any other information that might help. I build
> libnice in OpenSuse 13.1 inside a Oracle VirtualBox. Bellow I paste the
> output result of one machine. After I add the remote data both programs
> wait ~6 sec and then quit.
>
> Thanks in advance
> Andrei
>
>
>
> linux-dj3q:/home/andrei/libnice-0.1.7/examples # ./simple-example 0 $(host
> -4 -t A stun.stunprotocol.org | awk '{ print $4 }')
> Copy this line to remote client:
>
>   GWg4 qfbTNnhPvt9U383aHRtY4d 1,2013266431,10.0.2.15,44971,host
> 2,1677721855,86.124.49.178,51255,srflx
>
> Enter remote data (single line, no wrapping):
> > BHyP U+p/t10JnSrF02/xR9y+sC 1,2013266431,10.0.2.15,44422,host
> 2,1677721855,86.124.49.178,60416,srflx
> linux-dj3q:/home/andrei/libnice-0.1.7/examples #
>
>
>
>
> linux-dj3q:/home/andrei/libnice-0.1.7/examples # ./simple-example 1 $(host
> -4 -t A stun.stunprotocol.org | awk '{ print $4 }')
> Copy this line to remote client:
>
>   BHyP U+p/t10JnSrF02/xR9y+sC 1,2013266431,10.0.2.15,44422,host
> 2,1677721855,86.124.49.178,60416,srflx
>
> Enter remote data (single line, no wrapping):
> > GWg4 qfbTNnhPvt9U383aHRtY4d 1,2013266431,10.0.2.15,44971,host
> 2,1677721855,86.124.49.178,51255,srflx
> linux-dj3q:/home/andrei/libnice-0.1.7/examples #
>
>
> _______________________________________________
> nice mailing list
> nice at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/nice
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/nice/attachments/20140611/fe297b2d/attachment.html>


More information about the nice mailing list