- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试在 Google Cloud Ubuntu 实例中运行 Coturn。
在新的 VM 中安装 coturn 使用:sudo apt install coturn
我用私钥创建了一个证书文件并更新了/etc/turnserver.conf:
listening-port=3478
tls-listening-port=5349
listening-ip=10.128.0.2
relay-ip=10.128.0.2
external-ip=35.192.224.52/10.128.0.2
lt-cred-mech
userdb=/var/lib/turn/turndb
user=attitudemarketing:password
cert=cert.crt
pkey=private.key
no-stdout-log
一切似乎都在运行,但当我尝试使用 Trickle Ice 时:https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/好像不行
这是来自 coturn 的日志文件:
0: log file opened: /var/log/turn_1978_2017-10-12.log
0: pid file created: /var/run/turnserver.pid
0: IO method (main listener thread): epoll (with changelist)
0: Wait for relay ports initialization...
0: relay 10.128.0.2 initialization...
0: relay 10.128.0.2 initialization done
0: relay ::1 initialization...
0: relay ::1 initialization done
0: Relay ports initialization done
0: IO method (general relay thread): epoll (with changelist)
0: turn server id=1 created
0: IPv4. TCP listener opened on : 127.0.0.1:3478
0: IPv4. TCP listener opened on : 127.0.0.1:3479
0: IPv4. TCP listener opened on : 10.128.0.2:3478
0: IPv4. TCP listener opened on : 10.128.0.2:3479
0: IPv6. TCP listener opened on : ::1:3478
0: IPv6. TCP listener opened on : ::1:3479
0: IO method (general relay thread): epoll (with changelist)
0: turn server id=0 created
0: IPv4. TCP listener opened on : 127.0.0.1:3478
0: IPv4. TCP listener opened on : 127.0.0.1:3479
0: IPv4. TCP listener opened on : 10.128.0.2:3478
0: IPv4. TCP listener opened on : 10.128.0.2:3479
0: IPv6. TCP listener opened on : ::1:3478
0: IPv6. TCP listener opened on : ::1:3479
0: IPv4. UDP listener opened on: 127.0.0.1:3478
0: IPv4. UDP listener opened on: 127.0.0.1:3479
0: IPv4. UDP listener opened on: 10.128.0.2:3478
0: IPv4. UDP listener opened on: 10.128.0.2:3479
0: IPv6. UDP listener opened on: ::1:3478
0: IPv6. UDP listener opened on: ::1:3479
0: Total General servers: 2
0: IO method (auth thread): epoll (with changelist)
0: IO method (admin thread): epoll (with changelist)
0: IPv4. CLI listener opened on : 127.0.0.1:5766
0: IO method (auth thread): epoll (with changelist)
0: SQLite DB connection success: /var/lib/turn/turndb
我不确定它是否正常工作或者是否被阻止,因为它在 Google 云虚拟机中。
最佳答案
我最近在 AWS Ubuntu EC2 实例上设置了一个 coturn 服务器。 Google 云实例的流程应该相同。
首先,确保打开以下入站端口(TCP&UDP):
出于测试目的,在您的服务器可访问之前,将以下内容添加到 turnserver.conf 中:
no-tls
no-dtls
verbose
一般来说,你还需要在你的配置中添加fingerprint
。
关于这些的解释,查看this .我现在还会从您的配置中删除 cert=cert.crt
和 pkey=private.key
。
此时,您应该能够从远程计算机访问您的服务器。测试这个的最佳方法通常只是转到远程计算机上的浏览器,然后转到“your-public-ip”:3478。
如果服务器可以访问,您应该会在浏览器中看到以下内容:
如果没有,请尝试以下操作:
从 turnserver.conf 中删除 listening-ip、relay-ip、external-ip 和 listening-port,让 coturn 自行决定(这对我在 AWS EC2 上有效)
将监听端口设置为 80,将 alt-listening-port 设置为 443,然后在您的服务器上打开这些端口。这将有助于抵御非常严格的防火墙,但我认为这不应该是 Google VM 上的问题。
关于ubuntu - 在 ubuntu 中设置 Coturn,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46718592/
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 我们不允许在 Stack Overflow 上提出有关通用计算硬件和软件的问题。您可以编辑问题,使其成为
我们尝试配置 coturn使用替代监听端口,但它不起作用。我想澄清一下我们是否在做正确的事情,如果它因为 /me stupid 而不起作用?或服务器。 我们正在使用 turns (安全的)。我希望服务
我试图使用 部署一个简单的 TURN 服务器coturn . 当我在 Trickle ICE 上测试时( turn:rtc.jackxujh.me:3478 [webrtc:mighty] ),Tri
如果我的 kurento 媒体服务器(S1)设置在公共(public)服务器上,用户A可以连接到S1,但是很慢!我想买一台主机(H1),用户A可以快速连接到H1!服务器 H1 快速连接到 S1!所以我
如果我的 kurento 媒体服务器(S1)设置在公共(public)服务器上,用户A可以连接到S1,但是很慢!我想买一台主机(H1),用户A可以快速连接到H1!服务器 H1 快速连接到 S1!所以我
我在 Centos-7-x64 上有一个正在运行的 coturn 实例,如果我通过浏览器访问它,我可以看到: TURN Server use https connection for the admi
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 这个问题似乎不是关于 a specific programming problem, a softwar
我正在尝试在 Google Cloud Ubuntu 实例中运行 Coturn。 在新的 VM 中安装 coturn 使用:sudo apt install coturn 我用私钥创建了一个证书文件并
我有自己的 ubuntu 19 服务器。 注意:我需要一个用于视频聊天 Web 应用程序的 stun/turn 服务器。如果两个设备都在同一个网络中,它已经可以工作了。 我已经成功安装并配置了cotu
在使用 Chrome 62.0.3202.89 在 MacBook 10.12.6 上使用 Trickle ICE 测试我的 STUN & TURN 服务器 (CoTurn) 时,我没有得到任何候选人
我正在尝试为基于 WebRTC 的应用程序设置 COTURN 服务器。但是,我遇到了一些我无法理解的错误消息,并且无法在互联网上找到任何帮助。 以下是有关该应用程序的一些详细信息: 两个用户登录到应用
我已经构建了 coturn 并成功运行它。 ip:192.168.1.111。现在我面临的问题是通过REST API获取Turn凭证。 https://datatracker.ietf.org/doc
我正在尝试安装 coturn在位于 NAT 后面的服务器中,所以我遵循了 Kurento's documentation 给出的说明使其可在 NAT 后面访问。 问题是当我用 Trickle ICE
我正在尝试部署 coturn Kubernetes 中的服务器簇。 根据startup manual ,似乎每个服务器都必须有自己的外部 IP 地址。但我找不到将外部 IP 地址绑定(bind)到每个
我正在构建一个用于摄像头广播的网络应用程序。我将 Django 用于 Web 应用程序,将 coturn 用作 (STUN/TURN) 信令服务器。我的目标是使用 WebRTC 来实现。 我不知道如何
我正在尝试在运行 ubuntu 14.04 的谷歌计算云虚拟机实例上设置 coturn 服务器。我认为这是防火墙问题,但我在防火墙设置中打开了端口 tcp:3478 和 udp:3478。 3478
我正在尝试在运行 ubuntu 14.04 的谷歌计算云虚拟机实例上设置 coturn 服务器。我认为这是防火墙问题,但我在防火墙设置中打开了端口 tcp:3478 和 udp:3478。 3478
我使用webRTC来建立网络浏览器与其他浏览器的实时通信。为了确保此连接始终牢固,我想设置自己的 STUN/TURN 服务器。我决定在 Azure VM(Ubuntu 服务器)上使用 coturn。我
我正在建立这个视频教学网站并做了一些研究并得到了很好的理解,但除了这个东西。所以当一个用户想要连接到另一个用户时,P2P,我需要信令服务器来获取他们的公共(public) IP 来让他们连接。现在 S
我正在尝试在 Digital Ocean Ubuntu 16.04.3 LTS 上安装 CoTurn 4.5.0.6。我无法使用 sudo apt-get install coturn,因为它会安装版
我是一名优秀的程序员,十分优秀!