Unauthorised Error

144 views
Skip to first unread message

Prinbit

unread,
Dec 28, 2013, 7:14:13 AM12/28/13
to turn-server-project...@googlegroups.com
newbie to rtc5766-turn-server

case 1:
server: turnserver
client: turnutils_uclient -T 127.0.0.1
return:
0: Total connect time is 0
1: start_mclient: msz=2, tot_send_msgs=0, tot_recv_msgs=0
2: start_mclient: msz=2, tot_send_msgs=5, tot_recv_msgs=5
3: start_mclient: tot_send_msgs=10, tot_recv_msgs=10
3: Total transmit time is 3
3: Total lost packets 0 (0.000000%)
3: Average round trip delay 3.300000 ms; min = 0 ms, max = 17 ms
3: Average jitter 6.500000 ms; min = 0 ms, max = 17 ms

case 2:
server: turnserver --user=user:pwd
client: turnutils_uclient -T -u user -w pwd 127.0.0.1
return:
0: error 401 (Unauthorised)
0: error 401 (Unauthorised)

My basic requirement is to setup a webrtc stun and turn server for relay with a public username and password.

Can anyone help me? Thanks in advance

Oleg Moskalenko

unread,
Dec 28, 2013, 11:33:00 AM12/28/13
to turn-server-project...@googlegroups.com
Two things:

1) You did not set the realm value in the turnserver command. The realm is mandatory for long-term authentication.
2) If you are using webrtc, then -T option cannot be used. That option is for TCP relay (RFC 6062) and WebRTC does not support RFC 6062.

Regards,
Oleg
Reply all
Reply to author
Forward
0 new messages