Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to install and use STUN Server

Shulou Source: shulou.com Published: 2022-06-01 03:22:11 10月03日 Update

How to install and use STUN Server, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.

When we use the SIP client to call, we often encounter a complex network NAT environment, which requires us to install STUN Server / Turn Server for penetration.

Here is a simple record of the steps to install and start STUN Server:

Yum-y install gcc

Yum-y install make

Yum-y install boost* # For Boost

Yum-y install openssl* # For OpenSSL

Wget http://www.stunprotocol.org/stunserver-1.2.3.tgz

Tar zxvf stunserver-1.2.3.tgz

Cd stunserver

Make

# check whether the environment is OK

. / stuntestcode

Nohup / usr/local/stunserver/stunserver-- mode basic-- primaryinterface 172.31.78.132 &

Nohup. / stunserver-- mode full-- primaryinterface eth0-- altinterface eth0 &

Full-featured mode requires 2 IP

. / stunserver-- mode full-- primaryinterface 47.52.229.136-- altinterface 172.31.78.132

Nohup. / stunserver-- mode basic-- primaryinterface 172.31.78.132

Basic Mode 1 IP

. / stunserver-- mode basic-- primaryinterface 47.52.229.136-- altinterface 172.31.78.132

. / stunserver-- help to view the parameter description!

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Tags: Time pattern environment help complexity clarity content function parameter customer client this article novice more step knowledge network industry information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Redmi vpn OPPO Reno Microsoft