[libnice] server reflexive address not in the candidates list

Philip Withnall philip at tecnocode.co.uk
Mon Sep 14 07:24:19 PDT 2015


That is potentially a bug, but it’s hard to tell from the information
you have provided.

Could you please file a bug against libnice on
phabricator.freedesktop.org, with information from setting
G_MESSAGES_DEBUG=all NICE_DEBUG=all environment variables when running
the test?

https://phabricator.freedesktop.org/maniphest/task/create/?projects=lib
nice

Thanks,
Philip

On Mon, 2015-09-14 at 06:37 -0700, Tom Chen wrote:
> 
> From: tchen at extron.com
> To: chentom60 at hotmail.com
> Subject: server reflexive address not in the candidates list
> Date: Mon, 14 Sep 2015 13:36:36 +0000
> 
> Hello,
>  
> It seems that libnice does not add server reflexive address (public
> address) to the candidate list. The stunclient (
> http://www.stunprotocol.org/) can show server’s NATed public ip
> address, but libnice only gathers local ipv6 & ipv4 addresses
> (test2). I am wondering if the public IP is used in connectivity
> test?
>  
> Tom
>  
> 1.       Test using stunclient
> tao at ubuntu:~/stunserver/client$ ./stunclient stun.l.google.com 19302
> Binding test: success
> Local address: 10.113.54.60:45641
> Mapped address: 204.96.168.3:45641 <<== our company’s public IP
> address
>  
> 2.       Test using simple-example
> libnice-0.1.13/examples$ ./simple-example 0 stun.l.google.com 19302
> Copy this line to remote client:
>  
>   JwYC UyZG127rWa2d0uewhX50KS
> 1,2013266431,fe80::20c:29ff:fe34:d0c8,53332,host
> 2,1019216383,fe80::20c:29ff:fe34:d0c8,0,host
> 3,1015022079,fe80::20c:29ff:fe34:d0c8,53900,host
> 4,2013266431,fe80::20c:29ff:fe34:d0be,46736,host
> 5,1019216383,fe80::20c:29ff:fe34:d0be,0,host
> 6,1015022079,fe80::20c:29ff:fe34:d0be,39906,host
> 7,2013266431,fe80::20c:29ff:fe34:d0b4,48049,host
> 8,1019216383,fe80::20c:29ff:fe34:d0b4,0,host
> 9,1015022079,fe80::20c:29ff:fe34:d0b4,57212,host
> 10,2013266431,192.168.0.60,59944,host
> 11,1019216383,192.168.0.60,0,host
> 12,1015022079,192.168.0.60,56461,host
> 13,2013266431,172.16.1.128,58664,host
> 14,1019216383,172.16.1.128,0,host
> 15,1015022079,172.16.1.128,56622,host
> 16,2013266431,10.113.54.60,47084,host
> 17,1019216383,10.113.54.60,0,host
> 18,1015022079,10.113.54.60,49199,host
>  
> The candidates are all local IP addresses:
> 1,2013266431,fe80::20c:29ff:fe34:d0c8,53332,host
> 2,1019216383,fe80::20c:29ff:fe34:d0c8,0,host
> 3,1015022079,fe80::20c:29ff:fe34:d0c8,53900,host
> 4,2013266431,fe80::20c:29ff:fe34:d0be,46736,host
> 5,1019216383,fe80::20c:29ff:fe34:d0be,0,host
> 6,1015022079,fe80::20c:29ff:fe34:d0be,39906,host
> 7,2013266431,fe80::20c:29ff:fe34:d0b4,48049,host
> 8,1019216383,fe80::20c:29ff:fe34:d0b4,0,host
> 9,1015022079,fe80::20c:29ff:fe34:d0b4,57212,host
> 10,2013266431,192.168.0.60,59944,host
> 11,1019216383,192.168.0.60,0,host
> 12,1015022079,192.168.0.60,56461,host
> 13,2013266431,172.16.1.128,58664,host
> 14,1019216383,172.16.1.128,0,host
> 15,1015022079,172.16.1.128,56622,host
> 16,2013266431,10.113.54.60,47084,host
> 17,1019216383,10.113.54.60,0,host
> 18,1015022079,10.113.54.60,49199,host
> 
> 
> 
> Statement Of Confidentiality:
> 
> This electronic message transmission, and all attachments, contains
> information from Extron Electronics which is confidential and
> privileged. The information is for the exclusive viewing or use of
> the intended recipient. If you are not the intended recipient, be
> aware that any disclosure, copying, distribution or use of the
> contents of this information is prohibited. If you have received this
> electronic transmission in error, please notify the sender
> immediately by a "reply to sender only" message and destroy all
> electronic and hard copies of the communication, including
> attachments.
>  _______________________________________________
> nice mailing list
> nice at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/nice
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 213 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/nice/attachments/20150914/b6c11fd7/attachment.sig>


More information about the nice mailing list