coturn

WebRTC uses always TURN outside our LAN

我的未来我决定 提交于 2019-12-08 03:54:33
问题 My problem: I wrote a video chat application based on WebRTC. When two clients connect inside our LAN, they always get a Peer-to-Peer connection. But when a client from our LAN connects with a client outside our LAN it's always a Peer-to-TURN connection. When mobile devices connect with each other it's often TURN-to-TURN. What I expect: I know of symmetric NAT problems and expect 20% to 30% of all connections to require a TURN connection. But so far I never found any two clients outside of

Installing CoTurn 4.5.0.6 on Ubuntu 16.04.3 x64 TLS not working

这一生的挚爱 提交于 2019-12-06 13:47:10
问题 I am trying to install CoTurn 4.5.0.6 on a Digital Ocean Ubuntu 16.04.3 LTS. I can't use sudo apt-get install coturn since it installs version 4.5.0.3. Also I can't install Ubuntu 17.10 since I need long term support (TLS). I create a droplet on Digital Ocean with Ubuntu 16.04.3 LTS. Then I downloaded CoTurn: wget https://github.com/coturn/coturn/archive/4.5.0.6.tar.gz I unpack it: tar xvfz 4.5.0.6.tar.gz Go inside the folder: cd coturn-4.5.0.6 Install Libraries & Utilities needed: sudo apt

iceConnectionState is disconnected (when used over the internet)

谁说我不能喝 提交于 2019-12-06 09:43:30
问题 This question has been asked before, but I have not found an answer yet. I'm basically having the same problem as described here and here. I'm trying to set up a webRTC connection using PeerJS. It works flawlessly in LAN but I can't get it to work over the internet. I'm using coturn as TURN server, but so far this has not solved the problem.The Chromium console prints out the following: PeerJS: Added ICE candidate for: client1 peer.js:1476 PeerJS: Set remoteDescription: ANSWER for: client1

iOS & Safari 11 WebRTC does not gather STUN/TURN Trickle ICE Candidates

耗尽温柔 提交于 2019-12-06 06:59:40
问题 My web application is failing to gather WebRTC relay ICE candidates via a CoTURN server when using Safari 11 on iOS 11 (iPhone 5s & iPhone 7) or desktop. The web application (which establishes a one-way audio only WebRTC peer connection) works fine between the real browsers (Chrome and Firefox) either direct or via CoTURN relay, and I normally get 6-15 ICE candidates on these browsers. I have a (frankly, unnecessary) call to getUserMedia on the receiving side, which allows host ICE candidates

What is 'realm' in TURN server?

萝らか妹 提交于 2019-12-06 01:36:56
I want to host a TURN server for my WebRTC project, but I don't know what the 'realm' attribute does. I've looked at coturn and pion and they both seem to require me to enter this. Can someone explain what it is? It is a "key" to access a group of address that have a common "owner". It is an isolating measure: a TURN server can have one "default realms" or more "named realms" in its database. And any realm has its own users and each of them have a proper login/password couple to identify access and working sessions. Of course, computers which made a login into a "named realm" are virtually

Coturn server - Relay is not working

家住魔仙堡 提交于 2019-12-05 15:19:51
I am trying to setup a COTURN server for my WebRTC based application. However I am stuck with a couple of error messages that I am unable to understand, and can't find any help on them on internet. Here are some details about the app: Two users log on to the app, and one of the user can share their screen with the other - so the stream is going in only one direction I am able to get the app to work within intranet and on some external networks. So I'm confident that the application is working fine wherever STUN mode is sufficient. For some of the networks the STUN candidates are constantly

Installing CoTurn 4.5.0.6 on Ubuntu 16.04.3 x64 TLS not working

时光毁灭记忆、已成空白 提交于 2019-12-04 19:32:34
I am trying to install CoTurn 4.5.0.6 on a Digital Ocean Ubuntu 16.04.3 LTS. I can't use sudo apt-get install coturn since it installs version 4.5.0.3. Also I can't install Ubuntu 17.10 since I need long term support (TLS). I create a droplet on Digital Ocean with Ubuntu 16.04.3 LTS. Then I downloaded CoTurn: wget https://github.com/coturn/coturn/archive/4.5.0.6.tar.gz I unpack it: tar xvfz 4.5.0.6.tar.gz Go inside the folder: cd coturn-4.5.0.6 Install Libraries & Utilities needed: sudo apt-get install libssl-dev sudo apt-get install sqlite3 sudo apt-get install libsqlite3-dev sudo apt-get

Installing a TURN Server on Ubuntu for WebRTC

China☆狼群 提交于 2019-11-30 00:52:01
How can I install a TURN server on my ubuntu 12.04? Can you share tutorial? I read this tutorial: Implementing our own STUN/TURN server for WebRTC Application . But what I don't understand is how I can I install my own TURN server on my ubuntu 12.04? I am using currently using something like the following code to create the RTCPeerConnection const pc_config = {"iceServers": [{"url": "stun:stun.l.google.com:19302"}, {"url":"turn:my_username@<turn_server_ip_address>", "credential":"my_password"}]}; const pc_new = new webkitRTCPeerConnection(pc_config); And I want to fill the above code's

Installing a TURN Server on Ubuntu for WebRTC

我与影子孤独终老i 提交于 2019-11-28 21:37:39
问题 How can I install a TURN server on my ubuntu 12.04? Can you share tutorial? I read this tutorial: Implementing our own STUN/TURN server for WebRTC Application. But what I don't understand is how I can I install my own TURN server on my ubuntu 12.04? I am using currently using something like the following code to create the RTCPeerConnection const pc_config = {"iceServers": [{"url": "stun:stun.l.google.com:19302"}, {"url":"turn:my_username@<turn_server_ip_address>", "credential":"my_password"}

CoTURN: How to use TURN REST API?

痞子三分冷 提交于 2019-11-28 19:36:17
I have build coturn and run it successfully. ip:192.168.1.111. Now the question I faced is to get the Turn credential through REST API. http://tools.ietf.org/html/draft-uberti-behave-turn-rest-00 According to the passage the request format should be GET /?service=turn&username=mbzrxpgjys and response should be JSON . Now my question is: a) How to configure and command TURN SERVER to make it run in REST API mode? b) How to write a http request in the right format so TURN SERVER can reply correctly? could you give me an example? mido Few things to be clarified here are: GET /?service=turn