coturn이란?

coturn을 선택한 이유

coturn 설치

우분투 서버 인스턴스에 다음과 같이 coturn을 설치해주었다.

sudo apt update
sudo apt install coturn

coturn config 파일 수정

coturn을 설치하고나면 /etc/turnserver.conf 경로로 설정 파일에 접근할 수 있다.

sudo vi /etc/turnserver.conf

설정 파일의 길이는 매우매우 길지만, 서버 테스트를 위해 실제로 변경한 값은 다음과 같다.

listening-port

# TURN listener port for UDP and TCP (Default: 3478).
# Note: actually, TLS & DTLS sessions can connect to the
# "plain" TCP & UDP port(s), too - if allowed by configuration.
#
listening-port=3478