tubertc icon indicating copy to clipboard operation
tubertc copied to clipboard

Bundle or auto-configure a STUN/TURN server

Open dguido opened this issue 9 years ago • 3 comments

https://github.com/trailofbits/tubertc/blob/master/server.js#L125-L146 See appIceServers: http://easyrtc.com/docs/guides/easyrtc_server_configuration.php

AFAIK the 3 most popular STUN/TURN servers are:

  • https://github.com/otalk/restund (C)
  • https://github.com/coturn/coturn (C)
  • http://www.resiprocate.org/Main_Page (C++)

Guides

  • http://www.html5rocks.com/en/tutorials/webrtc/infrastructure/#after-signaling-using-ice-to-cope-with-nats-and-firewalls
  • https://www.webrtc-experiment.com/docs/TURN-server-installation-guide.html
  • http://www.rtcquickstart.org/ICE-STUN-TURN-server-installation

There are a variety of ways to "bundle" a STUN/TURN server, but I think an Ansible script would work best.

dguido avatar Nov 27 '14 15:11 dguido

Hey when I try connecting users from outside the lan it either takes a lot of time or doesn't connect at all, can I configure my own STUN/TURN servers? If the answer is yes, where the config file for the TURN server list? Thanks!

hayzamjs avatar Jul 08 '17 09:07 hayzamjs

@hayzamjs You can configure your own STUN/TURN servers in https://github.com/trailofbits/tubertc/blob/master/settings.json and https://github.com/trailofbits/tubertc/blob/master/settings.json

See https://easyrtc.com/docs/easyrtc_server_ice.php for formatting rules.

yying avatar Aug 28 '18 20:08 yying

https://github.com/pions/turn might be a good candidate for a really simple TURN server

yying avatar Aug 28 '18 20:08 yying