如何自托管而不依赖 WebRTC STUN 服务器 stun.l.google.com:19302? [英] How to self-host to not rely on WebRTC STUN server stun.l.google.com:19302?

查看:149
本文介绍了如何自托管而不依赖 WebRTC STUN 服务器 stun.l.google.com:19302?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have just downloaded a video chat project. It uses a STUN server and specifies the URL stun:23.21.150.121. How can I use my own server instead of the STUN server? What do I have to enter instead of this URL?

推荐答案

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

Actually there is no need to setup your own STUN or TURN servers, because there are a lot of public/semipublic servers. STUN from Google not always works very well.

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

This is my latest verified list (don't forget stun:/turn: scheme in 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 服务器,你可以使用这个为 Node.js 编写的,或者找一些此处.

In case if you need your own STUN server, you can use this one written for Node.js, or find some here.

您也可以查看this这个页面以便更好地理解.

Also you can check this and this pages for better understanding.

这篇关于如何自托管而不依赖 WebRTC STUN 服务器 stun.l.google.com:19302?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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