[Nice] Can't get TURN candidates

Isaline LAURENT zax337 at gmail.com
Fri Jun 28 02:00:14 PDT 2013


Hi Youness,

Thanks for your answer.
The wiresharks captures are quite relevant (well, I guess) :

   - with the stun : 1. binding request, 2. allocation request, 3. binding
   response, 4. 5. 6. : allocate requests.
   - with the turn :  1. binding request, 2. allocation request.. and the
   same three times more, but no response from the turn.

I already changed the compatibility to google mode for the stun, as it
didn't work with the RFC compliant at first.
The basic application works with libjingle. I have no more information
about the compatibility..
I didn't set up the server, and nobody seems to be able to answer this
question at work. ;)
I join the two output of the simple-example (with stun and turn), if it can
help.

Isaline


2013/6/27 Youness Alaoui <youness.alaoui at collabora.co.uk>

> Hi Isaline,
>
> Sorry for the late response. I've been on vacation/away for a while.
> In case you still haven't fixed your issue, could you tell me what TURN
> server
> you're using? Do you have a wireshark capture and what kind of
> requests/responses do you see? Also, you can enable libnice logging with
> the
> environment variable NICE_DEBUG=all, it might help you track down the
> issue.
> My guess would be that you're using a turn server that is incompatible
> with the
> ICE mode that you are using.. for example, using an RFC-compliant TURN
> server
> wile setting libnice compatibility to google mode.
>
> I hope this helps,
> Youness.
>
> On 06/21/2013 06:45 AM, Isaline LAURENT wrote:
> > Hi,
> >
> > I'm using libnice for a project, and it works fine with a stun server.
> > Nevertheless, when I try to use a turn, I only get the local candidate.
> > To make the problem simplier, I tried with the "simple-example" (in
> examples/),
> > which works fine with the stun too, but same problem with the turn.
> > I added a "nice_agent_set_relay_info" just after adding the stream, but
> nothing
> > more happens.
> > I know the turn server is ok because we use it for other purpose.
> > Is there something I miss ?
> > Many thanks.
> >
> > Isaline
> >
> >
> > _______________________________________________
> > nice mailing list
> > nice at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/nice
> >
>
>
>
> _______________________________________________
> 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/20130628/76bcfdd8/attachment-0001.html>
-------------- next part --------------
Using stun server '[46.137.144.193]:80'
Agent 0x79ecd0 : allocating stream id 1 (0x7a29f0)
Agent 0x79ecd0: added relay server [46.137.144.193]:80 of type 0
Agent 0x79ecd0 : In ICE-FULL mode, starting candidate gathering.
Agent 0x79ecd0 : libnice compiled without UPnP support
Interface:  lo
IP Address: 127.0.0.1
Ignoring loopback interface
Interface:  eth0
IP Address: 10.1.20.226
Interface:  lo
IP Address: ::1
Ignoring loopback interface
Agent 0x79ecd0: Trying to create host candidate on port 0
Agent 0x79ecd0: Could not set IPV6 socket ToS
Agent 0x79ecd0 : Attach source 0x79d900 (stream 1).
Agent 0x79ecd0: Add stun discovery
Agent 0x79ecd0 : Adding new srv-rflx candidate discovery 0x7f81b3b78010

Agent 0x79ecd0: Add turn discovery
Agent 0x79ecd0: Could not set IPV6 socket ToS
Agent 0x79ecd0 : Attach source 0x79d9c0 (stream 1).
Agent 0x79ecd0 : Adding new relay-rflx candidate discovery 0x7f81b3b54010

Agent 0x79ecd0 : discovery tick #1 with list 0x798480 (1)
Agent 0x79ecd0 : discovery - scheduling cand type 1 addr 46.137.144.193.

Agent 0x79ecd0 : stream 1 component 1 STATE-CHANGE disconnected -> gathering.
SIGNAL: state changed 1 1 gathering[1]
Agent 0x79ecd0 : discovery - scheduling cand type 3 addr 46.137.144.193.

 Message HMAC-SHA1 message integrity:
   key     : 0x686f6d656f
   sent    : 0xef2f22629033982b71ac0007d2cbe9a7bd8b67fd
STUN transaction retransmitted (timeout 399ms).
STUN transaction retransmitted (timeout 400ms).
STUN transaction retransmitted (timeout 798ms).
STUN transaction retransmitted (timeout 798ms).
waiting for candidate-gathering-done signal...Agent 0x79ecd0 : discovery tick #51 with list 0x798480 (1)
STUN transaction retransmitted (timeout 1594ms).
STUN transaction retransmitted (timeout 1594ms).
Agent 0x79ecd0 : discovery tick #101 with list 0x798480 (1)
Agent 0x79ecd0 : discovery tick #151 with list 0x798480 (1)
Agent 0x79ecd0 : bind discovery timed out, aborting discovery item.
Agent 0x79ecd0 : bind discovery timed out, aborting discovery item.
Agent 0x79ecd0 : Candidate gathering FINISHED, stopping discovery timer.
Agent 0x79ecd0: gathered local candidate : [10.1.20.226]:42428 for s1/c1. U/P 'j6pRy36LUum4FvQ9'/'(null)'
SIGNAL candidate gathering done
Copy this line to remote client:

Xc7T oTR3vp+ZjtwzH6Ppd0VLTm 1,1000,10.1.20.226,42428,host

Enter remote data (single line, no wrapping):
-------------- next part --------------
Using stun server '[79.125.32.0]:3478'
Agent 0x24b3cd0 : allocating stream id 1 (0x24b79f0)
Agent 0x24b3cd0: added relay server [79.125.32.0]:3478 of type 0
Agent 0x24b3cd0 : In ICE-FULL mode, starting candidate gathering.
Agent 0x24b3cd0 : libnice compiled without UPnP support
Interface:  lo
IP Address: 127.0.0.1
Ignoring loopback interface
Interface:  eth0
IP Address: 10.1.20.226
Interface:  lo
IP Address: ::1
Ignoring loopback interface
Agent 0x24b3cd0: Trying to create host candidate on port 0
Agent 0x24b3cd0: Could not set IPV6 socket ToS
Agent 0x24b3cd0 : Attach source 0x24b2900 (stream 1).
Agent 0x24b3cd0: Add stun discovery
Agent 0x24b3cd0 : Adding new srv-rflx candidate discovery 0x7f061dcce010

Agent 0x24b3cd0: Add turn discovery
Agent 0x24b3cd0: Could not set IPV6 socket ToS
Agent 0x24b3cd0 : Attach source 0x24b29c0 (stream 1).
Agent 0x24b3cd0 : Adding new relay-rflx candidate discovery 0x7f061dcaa010

Agent 0x24b3cd0 : discovery tick #1 with list 0x24ad480 (1)
Agent 0x24b3cd0 : discovery - scheduling cand type 1 addr 79.125.32.0.

Agent 0x24b3cd0 : stream 1 component 1 STATE-CHANGE disconnected -> gathering.
SIGNAL: state changed 1 1 gathering[1]
Agent 0x24b3cd0 : discovery - scheduling cand type 3 addr 79.125.32.0.

 Message HMAC-SHA1 message integrity:
   key     : 0x686f6d656f
   sent    : 0x40b169ff75e717587d2b14c5ccc1b895fda1dc38
waiting for candidate-gathering-done signal...Agent 0x24b3cd0 : Packet received on local socket 4 from [79.125.32.0]:3478 (88 octets).
Agent 0x24b3cd0 : Packet received from TURN server candidate.
Agent 0x24b3cd0: inbound STUN packet for 1/1 (stream/component) from [79.125.32.0]:3478 (88 octets) :
STUN unknown: 0 mandatory attribute(s)!
Received 88-bytes STUN message
No XOR-MAPPED-ADDRESS: 1
Mapped address found!
Agent 0x24b3cd0 : stun_bind_process/disc for 0x7f061dcce010 res 0.
STUN transaction retransmitted (timeout 398ms).
STUN transaction retransmitted (timeout 798ms).
Agent 0x24b3cd0 : discovery tick #51 with list 0x24ad480 (1)
STUN transaction retransmitted (timeout 1594ms).
Agent 0x24b3cd0 : discovery tick #101 with list 0x24ad480 (1)
Agent 0x24b3cd0 : discovery tick #151 with list 0x24ad480 (1)
Agent 0x24b3cd0 : bind discovery timed out, aborting discovery item.
Agent 0x24b3cd0 : Candidate gathering FINISHED, stopping discovery timer.
Agent 0x24b3cd0: gathered local candidate : [10.1.20.226]:54810 for s1/c1. U/P 'pdCNvPhCpwS1SQic'/'(null)'
Agent 0x24b3cd0: gathered local candidate : [178.16.163.30]:54810 for s1/c1. U/P 'LP/bHqz6GSLshd9i'/'(null)'
SIGNAL candidate gathering done
Copy this line to remote client:

 2n/W O5B+0T0Y+96kMnjmBdk4tX 1,1000,10.1.20.226,54810,host 2,900,178.16.163.30,54810,srflx
 
Enter remote data (single line, no wrapping):


More information about the nice mailing list