Ubuntu 中的 Coturn 服务器无法使用外部 IP 对 ICE 服务器进行涓流处理

Cannot trickle ICE server using external IP, Coturn server in Ubuntu

我在 Ubuntu.

中从 Url https://www.webrtc-experiment.com/docs/TURN-server-installation-guide.html#coturn 安装了 Coturn 服务器

Turnserver 使用 local-ip 工作正常,但是当我尝试使用 exernal-ip trickle 时,我收到错误 Not reachable?

如果我从浏览器访问 turnserver url 我可以使用外部 IP 访问它。我收到消息了。

TURN Server https admin connection

To use the HTTPS admin connection, you have to set the database table _admin_user_ with the admin user accounts.

我的turnserver.conf看起来像:

user=test:test123    
listening-port=3478     
tls-listening-port=5349

listening-ip=192.168.22.101    
relay-ip=192.168.22.101    
external-ip=202.137.12.10

realm=yourdomain.com    
server-name=yourdomain.com

lt-cred-mech    
userdb=/etc/turnuserdb.conf

cert=/etc/ssl/my-certificate.pem
pkey=/etc/ssl/my-private.key

no-stdout-log

我正在使用以下命令启动 turn 服务器:

sudo turnserver -a

我尝试使用以下格式进行滴注:

turn:202.137.12.10:3478[test:test123]

涓涓细流https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/

请告诉我哪里错了。

我明白了,原来是UDP 3478端口被封了。如果我使用 TCP 协议 (turn:?transport=tcp[username:password])