[libnice] Getting local addr instead of remote relay addr

Miguel París Díaz mparisdiaz at gmail.com
Mon Aug 10 10:28:33 PDT 2015


I have notice in *libnice-0.1.7* that when a RELAY is used, the local addr
is used instead of the remote addr for sending messages, so the connection
is not working.

*Trace:*
(kurento-media-server:4149): libnice-DEBUG: Agent 0x7f45e8054ab0 : Packet
received on local socket 29 from [*REMOTE-RELAY-IP*]:3478 (92 octets).
(kurento-media-server:4149): libnice-DEBUG: Agent 0x7f45e8054ab0 : Adding
remote candidate with addr [REMOTE-HOST-IP]:56744 for s1/c1. U/P
'(null)'/'(null)' prio: 2122260223
(kurento-media-server:4149): libnice-DEBUG: Agent 0x7f45e8054ab0 : Adding
remote candidate with addr [REMOTE-HOST-IP]:56745 for s1/c2. U/P
'(null)'/'(null)' prio: 2122260222
(kurento-media-server:4149): libnice-DEBUG: Agent 0x7f45e8054ab0 : Adding
remote candidate with addr [REMOTE-SRFLX-IP]:12929 for s1/c1. U/P
'(null)'/'(null)' prio: 1686052607
(kurento-media-server:4149): libnice-DEBUG: Agent 0x7f45e8054ab0 : Adding
remote candidate with addr [REMOTE-SRFLX-IP]:32715 for s1/c2. U/P
'(null)'/'(null)' prio: 1686052606
(kurento-media-server:4149): libnice-DEBUG: Agent 0x7f45e8054ab0 : Adding
remote candidate with addr [REMOTE-SRFLX-IP]:6754 for s1/c1. U/P
'(null)'/'(null)' prio: 1686052607
(kurento-media-server:4149): libnice-DEBUG: Agent 0x7f45e8054ab0 : Adding
remote candidate with addr [REMOTE-SRFLX-IP]:4160 for s1/c2. U/P
'(null)'/'(null)' prio: 1686052606
(kurento-media-server:4149): libnice-DEBUG: Agent 0x7f45e8054ab0 : Adding
remote candidate with addr [REMOTE-SRFLX-IP]:12934 for s1/c1. U/P
'(null)'/'(null)' prio: 1686052607
(kurento-media-server:4149): libnice-DEBUG: Agent 0x7f45e8054ab0 : Adding
remote candidate with addr [REMOTE-SRFLX-IP]:32720 for s1/c2. U/P
'(null)'/'(null)' prio: 1686052606
(kurento-media-server:4149): libnice-DEBUG: Agent 0x7f45e8054ab0 : Adding
remote candidate with addr [REMOTE-SRFLX-IP]:32710 for s1/c2. U/P
'(null)'/'(null)' prio: 1686052606
(kurento-media-server:4149): libnice-DEBUG: Agent 0x7f45e8054ab0 : Adding
remote candidate with addr [REMOTE-SRFLX-IP]:12924 for s1/c1. U/P
'(null)'/'(null)' prio: 1686052607
(kurento-media-server:4149): libnice-DEBUG: Agent 0x7f45e8054ab0 : Adding
remote candidate with addr [REMOTE-SRFLX-IP]:12939 for s1/c1. U/P
'(null)'/'(null)' prio: 1686052607
(kurento-media-server:4149): libnice-DEBUG: Agent 0x7f45e8054ab0 : Adding
remote candidate with addr [REMOTE-SRFLX-IP]:32725 for s1/c2. U/P
'(null)'/'(null)' prio: 1686052606
(kurento-media-server:4149): libnice-DEBUG: Agent 0x7f45e8054ab0 : Adding
remote candidate with addr [REMOTE-SRFLX-IP]:32730 for s1/c2. U/P
'(null)'/'(null)' prio: 1686052606
(kurento-media-server:4149): libnice-DEBUG: Agent 0x7f45e8054ab0 : Adding
remote candidate with addr [REMOTE-SRFLX-IP]:12944 for s1/c1. U/P
'(null)'/'(null)' prio: 1686052607
(kurento-media-server:4149): libnice-DEBUG: Agent 0x7f45e8054ab0 : Adding
remote candidate with addr [*REMOTE-RELAY-IP*]:63444 for s1/c1. U/P
'(null)'/'(null)' prio: 41885439
(kurento-media-server:4149): libnice-DEBUG: Agent 0x7f45e8054ab0 : Adding
remote candidate with addr [*REMOTE-RELAY-IP*]:65055 for s1/c2. U/P
'(null)'/'(null)' prio: 41885438
(kurento-media-server:4149): libnice-DEBUG: Agent 0x7f45e8054ab0 : Adding
remote candidate with addr [*REMOTE-RELAY-IP*]:51463 for s1/c1. U/P
'(null)'/'(null)' prio: 25108223
(kurento-media-server:4149): libnice-DEBUG: Agent 0x7f45e8054ab0 : Adding
remote candidate with addr [*REMOTE-RELAY-IP*]:58585 for s1/c2. U/P
'(null)'/'(null)' prio: 25108222
(kurento-media-server:4149): libnice-DEBUG: Agent 0x7f45e8054ab0 : Packet
received on local socket 29 from [REMOTE-SRFLX-IP]:2414 (104 octets).
(kurento-media-server:4149): libnice-DEBUG: Agent 0x7f45e8054ab0 : Packet
received on local socket 29 from [*LOCAL-IP*]:63444 (104 octets).
(kurento-media-server:4149): libnice-DEBUG: Agent 0x7f45e8054ab0 : Packet
received on local socket 29 from [*LOCAL-IP*]:63444 (104 octets).
(kurento-media-server:4149): libnice-DEBUG: Agent 0x7f45e8054ab0 : Packet
received on local socket 29 from [*LOCAL-IP*]:51463 (104 octets).

-- 
Miguel París Díaz
------------------------------------------------------------------------
Computer/Software engineer.
Researcher and architect in http://www.kurento.org
http://twitter.com/mparisdiaz
------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/nice/attachments/20150810/8cf56dd1/attachment.html>


More information about the nice mailing list