我想配置我的本地副本
https://github.com/mattermost/mattermost-webrtc/blob/master/vagrant/janus/config/janus.cfg
在Mattermost中启用video calls以进行测试。其中一部分是:
[nat]
stun_server = stun.l.google.com
stun_port = 19302如何在企业代理后使用stun.l.google.com?
我试过了
proxytunnel -p corporate-proxy:7123 -d stun.l.google.com:19302 -a 3098并将第一部分替换为
[nat]
stun_server = localhost
stun_port = 3098这导致了
$ docker run -it webrtc_blah_2
Janus commit: ad2c131617ac989df1a1bbd601272a5e448cbb3e
Compiled on: Mon Jul 24 13:04:22 UTC 2017
---------------------------------------------------
Starting Meetecho Janus (WebRTC Gateway) v0.2.4
---------------------------------------------------
Checking command line arguments...
Debug/log level is 4
Debug/log timestamps are disabled
Debug/log colors are enabled
Adding 'vmnet' to the ICE ignore list...
Using X.17.0.2 as local IP...
Token based authentication enabled
Initializing recorder code
Initializing ICE stuff (Full mode, ICE-TCP candidates disabled, IPv6 support disabled)
STUN server to use: localhost:3098
ICE handles watchdog started
Testing STUN server: message is of 20 bytes
[FATAL] [ice.c:janus_ice_set_stun_server:808] No response to our STUN BINDING test
[FATAL] [janus.c:main:3667] Invalid STUN address localhost:3098类似于默认配置(参见最后两行):
[FATAL] [ice.c:janus_ice_set_stun_server:808] No response to our STUN BINDING test
[FATAL] [janus.c:main:3667] Invalid STUN address stun.l.google.com:19302发布于 2017-07-25 20:25:26
1.根据定义,1.STUN和TURN两个服务器都在其各自的RFC中只能在公网IP上设置
2.Stun服务器用于提供您的防火墙的公网IP,如果您在您的防火墙中配置,您的STUN绑定请求( SBR)将不会产生响应,因为您的防火墙没有配置外部服务器。
3. STUN服务器的一个非常表层的工作是接收来自源的SBR,检查来自传输层的IP地址,并返回相同的响应,并找到一个端口,该端口将打开以返回源。
4.后面的打孔是在同一端口上进行的,以使用STUN绑定指示使其在整个会话中打开。
症结是不应该在防火墙内配置STUN或TURN,因为这是没有用的。
https://stackoverflow.com/questions/45302679
复制相似问题