WebRTC在局域网内是否需要STUN服务器? [英] Whether STUN server is needed within LAN for WebRTC?

查看:53
本文介绍了WebRTC在局域网内是否需要STUN服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Webrtc 开发了一个 p2p 视频聊天.我知道需要 STUN 或 TURN 服务器来识别 NAT 背后的公共 IP.目前正在使用谷歌的 STUN 服务器.

I have developed a p2p video chat using Webrtc. I am aware that STUN or TURN server is required to identify the public IP behind NAT. Currently am using Google's STUN server.

我在连接到局域网的服务器上安装了应用程序,但无法访问互联网,我是否需要在我的服务器中安装 STUN 服务器才能在局域网内进行 Webrtc 视频聊天?

I have the application installed in the server connected to the LAN which will not have internet access, do I need to install the STUN server in my server to make Webrtc video chat work within the LAN?

推荐答案

Peers 应该能够在没有 STUN 的情况下连接到 LAN(在 NAT 的同一侧),即使用主机候选.试试看!

Peers should be able to connect within a LAN (on the same side of a NAT) without STUN, i.e. using the host candidates. Try it out!

这篇关于WebRTC在局域网内是否需要STUN服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆