How to set up TURN? #199

Closed
jniltinho opened this Issue Apr 27, 2015 · 8 comments

Comments

Projects
None yet
2 participants

Start video call not run remote users

spreed-webrtc app run in Server DigitalOcean Server with nginx

User1 network ADSL (NAT)

User2 network CableModem (NAT)

Server DigitalOcean Ubuntu 32Bits Firewall UFW, open input port 80, 3478
spreed-webrtc run port 127.0.0.1:8090

Start video call run if:
User1 Private LAN (NAT)
User2 Private LAN (NAT)

@longsleep longsleep added the question label Apr 27, 2015

Contributor

longsleep commented Apr 27, 2015

Please explain exactly what your problem is. I assume the web client loads fine and you have issues to establish a peer connection. This most likely has nothing todo with the spreed-webrtc server but you need a TURN server to cross your particular network environment. See the README.md for suggestions. You can try https://www.spreed.me to see if a set up with TURN server in action.

Hello Simon, I believe that should be the TURN configuration, I have already installed on the server, we just need to configure spreed-WebRTC
When I'm in the same private network connecting all works, but on different networks the voice call or video does not work.

error_01
error_02
error_03

I created a screencast with error
http://youtu.be/v1hsA_OqqJs

Contributor

longsleep commented Apr 27, 2015

Yes you need a turn server. Without it will not work.

@longsleep longsleep closed this Apr 27, 2015

Howto configure TURN Server in app spreed ?

cat server.conf

[app]
turnURIs = turn:my.turnserver:3478?transport=udp
;turnSecret = the-default-turn-shared-secret-do-not-keep

cat /etc/turnserver/turnusers.txt
user1:apppassword:mydomain.org:authorized

Contributor

longsleep commented Apr 27, 2015

Enable use-auth-secret and static-auth-secret in your turn server configuration. The static-auth-secret value and turnSecret value need to match.

@longsleep longsleep reopened this Apr 27, 2015

Contributor

longsleep commented Apr 27, 2015

I reopened this because the TURN setup should get documented. Contributions very welcome.

Compile -> http://turnserver.open-sys.org/downloads/v3.2.5.7/turnserver-3.2.5.7.tar.gz

Ubuntu 32Bits

Config
/etc/turnserver/turnserver.conf
use-auth-secret
static-auth-secret=spreedpasswd

Log /var/log/turn.log

399: session 000000000000000003: new, username=<>, lifetime=3600
399: session 000000000000000003: user <>: incoming packet ALLOCATE processed, success
399: handle_udp_packet: New UDP endpoint: local addr 77.131.54.244:3478, remote addr 202.83.229.196:46862
399: IPv4. Local relay addr: 77.131.54.244:49663
399: session 000000000000000005: new, username=<>, lifetime=3600
399: session 000000000000000005: user <>: incoming packet ALLOCATE processed, success
399: session 000000000000000001: user <>: incoming packet ALLOCATE processed, success
399: session 000000000000000002: user <>: incoming packet ALLOCATE processed, success
399: session 000000000000000003: user <>: incoming packet ALLOCATE processed, success
399: session 000000000000000004: user <>: incoming packet ALLOCATE processed, success
399: session 000000000000000005: user <>: incoming packet ALLOCATE processed, success
399: session 000000000000000001: user <>: incoming packet ALLOCATE processed, success

408: session 000000000000000012: new, username=<>, lifetime=3600
408: session 000000000000000012: user <>: incoming packet ALLOCATE processed, success
408: session 000000000000000008: user <>: incoming packet ALLOCATE processed, success
408: handle_udp_packet: New UDP endpoint: local addr 77.131.54.244:3478, remote addr 191.183.181.250:59249
408: IPv4. Local relay addr: 77.131.54.244:61602

408: session 000000000000000009: user <>: incoming packet ALLOCATE processed, success
408: session 000000000000000010: user <>: incoming packet ALLOCATE processed, success
408: session 000000000000000011: user <>: incoming packet ALLOCATE processed, success
408: session 000000000000000012: user <>: incoming packet ALLOCATE processed, success
408: session 000000000000000013: user <>: incoming packet ALLOCATE processed, success
408: session 000000000000000006: user <>: incoming packet ALLOCATE processed, success

Not run per to per call

@longsleep longsleep changed the title from Start video call not run to How to set up TURN Jul 2, 2015

@longsleep longsleep changed the title from How to set up TURN to How to set up TURN? Jul 2, 2015

Contributor

longsleep commented Jun 3, 2016

We now have instructions for TURN server setup in the Spreedbox wiki. See https://github.com/spreedbox/spreedbox/wiki/Use-TURN-server for details.

@longsleep longsleep closed this Jun 3, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment