Watch 2 Star 2 Fork 2

WolfCS / stundC++

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
Clone or download
Notice: Creating folder will generate an empty file .keep, because not support in Git
Running the STUN server:

You need to have 2 IP addresses next to each other or 
have 2 hosts and each of them have 1 IP address to run the STUN server.

If you have 2 IP addresses next to each other on the same host, you can:
./stun_server -h primary-ip -a secondary-ip -b

If you have 2 hosts and each of them have 1 IP address, you can:
./stun_server -h primary-ip -u secondary-ip(pub)/secondary-ip(priv) -b

STUN server version 0.97
 ./stun_server [-v] [-h] [-e] [s] [-h IP_Address] [-a IP_Address] [-u IP_Address/IP_Address] 
    [-p port] [-o port] [-d port] [-m mediaport]
 If the IP addresses of your NIC are and, run this program with
    ./stun_server -v  -h -a

If the IP addresses of one of your host is There is another host, of which the NIC
is, and there is a public IP address being bind to it, run this
program with
    ./stun_server -b  -h -u

 STUN servers need two IP addresses and two ports, these can be specified with:
  -e whether receive msg with epoll mechanism
  -s whether display statistics logs
  -h sets the primary IP
  -a sets the secondary IP
  -u sets the unbind secondary IP
  -p sets the primary port and defaults to 3478
  -o sets the secondary port and defaults to 3479
  -d sets the unbind secondary communication port and defaults to 3481
  -b makes the program run in the background
  -m sets up a STERN server starting at port m
  -s runs in verbose statistics mode
  -v runs in verbose mode

Comments ( 0 )

Sign in for post a comment


stund本身是一个比较简洁的STUN协议的服务端实现。 但stund本身有着固有的不足:即不支持在多主机上部署。 本项目对stund的实现进行优化,以支持多主机的部署。 spread retract


No release

Gitee Metrics




load more
can not load any more