gpt4 book ai didi

node.js - 如何自托管不依赖 WebRTC STUN 服务器 stun.l.google.com :19302?

转载 作者:IT老高 更新时间:2023-10-28 22:12:49 29 4
gpt4 key购买 nike

我刚刚下载了一个视频聊天项目。它使用 STUN 服务器并指定 URL stun:23.21.150.121。我如何使用自己的服务器而不是 STUN 服务器?我必须输入什么来代替这个 URL?

最佳答案

其实没有必要设置自己的 STUN 或 TURN 服务器,因为有很多公共(public)/半公共(public)服务器。来自 Google 的 STUN 并不总是很有效。

这是我最新验证的列表(不要忘记 stun:/turn: 在 URL 中的方案):

{url:'stun:stun01.sipphone.com'},
{url:'stun:stun.ekiga.net'},
{url:'stun:stun.fwdnet.net'},
{url:'stun:stun.ideasip.com'},
{url:'stun:stun.iptel.org'},
{url:'stun:stun.rixtelecom.se'},
{url:'stun:stun.schlund.de'},
{url:'stun:stun.l.google.com:19302'},
{url:'stun:stun1.l.google.com:19302'},
{url:'stun:stun2.l.google.com:19302'},
{url:'stun:stun3.l.google.com:19302'},
{url:'stun:stun4.l.google.com:19302'},
{url:'stun:stunserver.org'},
{url:'stun:stun.softjoys.com'},
{url:'stun:stun.voiparound.com'},
{url:'stun:stun.voipbuster.com'},
{url:'stun:stun.voipstunt.com'},
{url:'stun:stun.voxgratia.org'},
{url:'stun:stun.xten.com'},
{
url: 'turn:numb.viagenie.ca',
credential: 'muazkh',
username: 'webrtc@live.com'
},
{
url: 'turn:192.158.29.39:3478?transport=udp',
credential: 'JZEOEt2V3Qb0y27GRntt2u2PAYA=',
username: '28224511:1379330808'
},
{
url: 'turn:192.158.29.39:3478?transport=tcp',
credential: 'JZEOEt2V3Qb0y27GRntt2u2PAYA=',
username: '28224511:1379330808'
}

https://gist.github.com/yetithefoot/7592580

如果您需要自己的 STUN 服务器,可以使用 this one为 Node.js 编写的,或者找一些 here .

您也可以查看thisthis页面以便更好地理解。

关于node.js - 如何自托管不依赖 WebRTC STUN 服务器 stun.l.google.com :19302?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20068944/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com