'WebRTC_video_broadcasting/WebRTC.TURN-server'에 해당되는 글 3건

  1. 2017.04.24 :: How to setup your own STUN/TURN server for NAT traversal
  2. 2017.04.24 :: webrtc-in-real-world-stun-turn
  3. 2017.04.20 :: TURN-SERVER-INSTALLATION(coturn-20170516)

How to setup your own STUN/TURN server for NAT traversal

https://www.nomachine.com/AR07N00894


posted by cskimair
:

- No.2 looks better in contents 



1. 

http://html5rocksko.blogspot.kr/2013/11/webrtc-in-real-world-stun-turn-and.html


2. 

https://www.html5rocks.com/ko/tutorials/webrtc/infrastructure/


posted by cskimair
:

TURN서버 인스톨하기 


1. TURN서버란 


2. TURN서버 설치 방법 


2.1 성공한 설치방법 

- nomachine에서 TURN서버 설치방법 소개글 

https://www.nomachine.com/AR07N00894


 성공한 세팅: 

2.1.1 

- sudo vim /etc/init.d/coturn

(old)

DAEMON_ARGS="-a -o -v -n --no-dtls --no-tls -u kctbiz:kctbiz19    74 -r titan.iptime.org --external-ip 183.102.108.51


(new, update:20180705 )

DAEMON_ARGS="-a -o -v -n --no-dtls --no-tls -u kctbiz:kctbiz19    74 -r titan.iptime.org --external-ip  222.108.77.97"


- sudo service coturn restart 

Warning: coturn.service changed on disk. Run 'systemctl daemon-reload' to reload units.


kctbiz@kctbiz3white:/etc/init.d$ ps -ef | grep turn

root      4506     1  0 19:05 ?        00:00:00 /usr/bin/turnserver -a -o -v -n --no-dtls --no-tls -u kctbiz:kctbiz1974 -r titan.iptime.org --external-ip 183.102.108.51

kctbiz    4901 10875  0 19:06 pts/2    00:00:00 grep --color=auto turn

kctbiz@kctbiz3white:/etc/init.d$



2.2 참고한 방법 


- 2.1방법이용전에 본 글 

http://stackoverflow.com/questions/25546098/installing-turn-server-on-ubuntu-for-webrtc

simple way:  comment: only installing coturn is enough. 

sudo apt-get install coturn

If you say no, I want the latest cutting edge, you can download source code from their downloads page in install it yourself, example:

sudo -i     # ignore if you already in admin mode
apt-get update && apt-get install libssl-dev libevent-dev libhiredis-dev make -y    # install the dependencies
wget -O turn.tar.gz http://turnserver.open-sys.org/downloads/v4.5.0.3/turnserver-4.5.0.3.tar.gz     # Download the source tar
tar -zxvf turn.tar.gz     # unzip
cd turnserver-*
./configure
make && make install 

sample command for running TURN server:

sudo turnserver -a -o -v -n  --no-dtls --no-tls -u test:test -r "someRealm"

command description:

  • -a - Use long-term credentials mechanism
  • -o - Run server process as daemon
  • -v - 'Moderate' verbose mode.
  • -n - no configuration file
  • --no-dtls - Do not start DTLS listeners
  • --no-tls - Do not start TLS listeners
  • -u - user credentials to be used
  • -r - default realm to be used, need for TURN REST API

 



kctbiz@kctbiz3white:~$ sudo service coturn status 

[sudo] password for kctbiz: 

● coturn.service - LSB: coturn TURN Server

   Loaded: loaded (/etc/init.d/coturn; bad; vendor preset: enabled)

   Active: active (running) since Fri 2017-04-21 09:22:51 KST; 57s ago

     Docs: man:systemd-sysv-generator(8)

  Process: 987 ExecStart=/etc/init.d/coturn start (code=exited, status=0/SUCCESS

   CGroup: /system.slice/coturn.service

           └─1057 /usr/bin/turnserver -a -o -v -n --no-dtls --no-tls -u kctbiz:k


Apr 21 09:22:50 kctbiz3white systemd[1]: Starting LSB: coturn TURN Server...

Apr 21 09:22:50 kctbiz3white coturn[987]:  * Starting coturn  turnserver

Apr 21 09:22:51 kctbiz3white coturn[987]:    ...done.

Apr 21 09:22:51 kctbiz3white systemd[1]: Started LSB: coturn TURN Server.

kctbiz@kctbiz3white:~$ 



2.3 GIT허브 자료 

- https://github.com/coturn/coturn/blob/master/README.turnserver

- https://github.com/coturn/coturn/wiki/CoturnConfig


-  rfc turn서버는  오래되었다 함(deprecated) 

https://github.com/coturn/rfc5766-turn-server/blob/v3.2/README.turnserver


2.4 참고만 하고 결정적 도움안됨 

https://www.webrtc-experiment.com/docs/TURN-server-installation-guide.html#coturn



3. TURN서버 설정 방법 

https://github.com/coturn/coturn/wiki/CoturnConfig


4. TURN서버 설정팁 

- 부팅시에 자동 실행하는 법 

5.기타 

http://piratefsh.github.io/projects/2015/08/27/webrtc-stun-turn-servers.html


update: sth more are not commented in this article, 

I will try to add more if I can.  


posted by cskimair
: