I'm using an Ubuntu 14.04 (an Azure VPS actually) so i have to installed rfc5766-turn-server not the latest coturn version. I have following this guide.
At the last step, i cannot start turnserver. My command to start:
turnserver -n -L <my_server_public_IP> -X <my_server_public_IP> -E <my_server_public_IP> -a -f -r my-domain.com --cert /myPath/TurnServerCerts/turnserver.crt --pkey /myPath/TurnServerCerts/turnserver.key
I got from the log:
........
bind: Cannot assign requested address
0: Trying to bind fd 14 to <my_server_public_IP:3478>: errno=99
Cannot bind local socket to addr: Cannot assign requested address
0: Cannot bind UDP/DTLS listener socket to addr <my_server_public_IP:3478>:3478
0: Trying to bind UDP/DTLS listener socket to addr <my_server_public_IP:3478>:3478, again...
0: Trying to bind fd 15 to <my_server_public_IP:3478>: errno=99
Cannot bind local socket to addr: Cannot assign requested address
........
I have tried remove the listening IP (the -L parameter) from the command and the turnserver can start. However, in that case, turnserver just listen on local IP address. How can i make it listen to public IP address?
curl https://ipinfo.io/ip
and private ip withhostname -I
. Also, if you're behind a NAT (many EC2 users will be) your external ip config should be set asexternal-ip=$PUBLIC_IP/$PRIVATE_IP
– Impolitic