代码之家  ›  专栏  ›  技术社区  ›  qräbnö

如何使用stun.l.google。公司代理背后的com?

  •  0
  • qräbnö  · 技术社区  · 7 年前

    https://github.com/mattermost/mattermost-webrtc/blob/master/vagrant/janus/config/janus.cfg

    启用 video calls 出于测试目的 Mattermost 一部分是:

    [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
    
    1 回复  |  直到 7 年前
        1
  •  2
  •   Gaurav Srivastava    7 年前

    2.Stun服务器用于提供防火墙的公共IP,如果您在防火墙中配置,您的Stun绑定请求(SBR)将不会得到响应,因为您的防火墙没有配置外部服务器。

    4.稍后在同一端口上打孔,使用STUN绑定指示使其在整个会话中打开。