[libnice] simple-example.c not working

B Andrei yo8tot at yahoo.com
Wed Jun 4 22:47:15 PDT 2014


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 #
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/nice/attachments/20140604/784f121c/attachment.html>


More information about the nice mailing list