在使用 Chrome 62.0.3202.89 在 MacBook 10.12.6 上使用 Trickle ICE 测试我的 STUN & TURN 服务器 (CoTurn) 时,我没有得到任何候选人:
https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/
和:
stun:<ip-adres>:3478
turn:<ip-adres>:3478 [username:test]
在 Digital Ocean 上,我创建了一个 droplet Ubuntu 16.04.3 x64 并安装了 CoTurn 版本 4.5.0.3:
sudo apt-get update
sudo apt-get install coturn
默认情况下,防火墙处于非活动状态。
接下来,我编辑sudo vi /etc/turnserver.conf
并提供以下选项:
fingerprint
lt-cred-mech
user=username:test
realm=<ip-adres>
listening-ip=<ip-adres>
relay-ip=<ip-adres>
external-ip=<ip-adres>
接下来,我编辑sudo vi /etc/default/coturn
并取消注释该选项:
TURNSERVER_ENABLED=1
然后我启动 Coturn 守护进程:
sudo systemctl start coturn
sudo systemctl status coturn
这给出了输出:
● coturn.service - LSB: coturn TURN Server
Loaded: loaded (/etc/init.d/coturn; bad; vendor preset: enabled)
Active: active (exited) since Sat 2017-11-11 20:27:10 UTC; 52s ago
Docs: man:systemd-sysv-generator(8)
Process: 1386 ExecStart=/etc/init.d/coturn start (code=exited, status=0/SUCCESS)
Tasks: 0
Memory: 0B
CPU: 0
Nov 11 20:27:10 coturn systemd[1]: Starting LSB: coturn TURN Server...
Nov 11 20:27:10 coturn coturn[1386]: * coturn disabled in /etc/default/coturn turnserver
Nov 11 20:27:10 coturn coturn[1386]: ...done.
Nov 11 20:27:10 coturn coturn[1386]: * See /etc/default/coturn for instructions on enabling turnserver
Nov 11 20:27:10 coturn coturn[1386]: ...done.
Nov 11 20:27:10 coturn systemd[1]: Started LSB: coturn TURN Server.
Nov 11 20:27:53 coturn systemd[1]: Started LSB: coturn TURN Server.
请帮助我,这里还需要什么才能让它工作?