高性能stun服务器搭建
来源:互联网 发布:军事机构的因特网域名 编辑:程序博客网 时间:2024/05/29 23:47
项目中使用WebRtc,需要使用stun服务器,网上倒是有仁人志士共享了许多免费可用的stun服务地址,但是不知道稳定性如何,
所以提前预研了一下;
使用Stuntman搭建,地址:http://www.stunprotocol.org/
搭建过程该项目的github上也是有的在这简单阐述一下:
我的虚拟机:Ubuntu 14.04 LTS 64位
首先:
sudo apt-get install g++sudo apt-get install makesudo apt-get install libboost-dev # For Boostsudo apt-get install libssl-dev # For OpenSSL
一般的机器g++和make都有了,就不用安装了;
下载Stuntman:
wget http://www.stunprotocol.org/stunserver-1.2.7.tgz
tar -zxvf stunserver-1.2.7.tgz
make:
sudo make
make成功后文件夹下会出现三个新文件:stunclient,stunserver,stuntestcode;
stunclient:测试客户端;
stunserver:server;
stuntestcode:校验安装是否成功的;
首先先执行./stuntestcode输出success说明成功;
启动server:
sudo ./stunserver默认监听3438端口,可通过--h查看全部参数;
查看端口监听:
sudo netstat -ap | grep 3478输出:
udp 0 0 *:3478 *:* 3658/stunserver
说明3438端口正在使用;
最后使用client测试:
sudo ./stunclient 127.0.0.1 3478输出:
Binding test: successLocal address: 127.0.0.1:41348Mapped address: 127.0.0.1:41348
说明成功:
还未在公网测试,有了测试情况,将会及时补充;
0 0
- 高性能stun服务器搭建
- 高性能stun服务器搭建
- coturn(turn/stun)服务器搭建
- centos7 搭建turn stun 服务器
- Nginx + PHP 搭建高性能web服务器
- workerman高性能socket服务器框架搭建
- workerman高性能socket服务器框架搭建
- stun服务器
- 搭建高性能WEB服务器nginx搭建与配置
- 搭建性能比Squid高很多的Varnish服务器
- 【讨论】搭建性能比Squid高很多的Varnish服务器
- 搭建性能比Squid高很多的Varnish服务器
- 搭建性能比squid高很多的varnish服务器
- 搭建性能比squid高很多的varnish服务器
- Linux下使用Tomcat7搭建高性能Java服务器
- Nginx+tomcat搭建高性能web服务器集群
- CentOS+Nginx+PHP+MySQL 搭建高性能的web服务器
- node js +forever+ nginx 搭建高性能web服务器
- 禁止ScrollView的childview自动滑动到底部
- 继承中虚函数的缺省参数值问题
- 让birt在ie10中跑起来
- printf()函数
- 【转】 android-继承BaseAdapter--自定义适配器,getView执行多次的解决方法
- 高性能stun服务器搭建
- Provider sun.tools.attach.WindowsAttachProvider could not be instant
- Linux 下Kill多进程的方法
- $_SERVER['PATH_INFO']
- Magento customer get by other attribute such as telephone
- StringUtils 工具类的常用方法
- fatal error C1010: 在查找预编译头时遇到意外的文件结尾。是否忘记了向源中添加“#include "stdafx.h
- python 递归创建目录
- 筛法 Count Primes