在CentOS-7.X服务器上安装并配置turnserver后,我遇到了以下问题。
$ ./turnserver
...
...
0: Cannot bind TCP/TLS listener socket to addr 39.39.39.39:3478
0: Trying to bind TCP/TLS listener socket to addr 39.39.39.39:3478, again...
bind: Cannot assign requested address
0: Trying to bind fd 257 to <39.39.39.39:3478>: errno=99
Cannot bind local socket to addr: Cannot assign requested address
0: Cannot bind TCP/TLS listener socket to addr 39.39.39.39:3478
0: Trying to bind TCP/TLS listener socket to addr 39.39.39.39:3478, again...
bind: Cannot assign requested address
0: Trying to bind fd 258 to <39.39.39.39:3478>: errno=99
Cannot bind local socket to addr: Cannot assign requested address
0: Cannot bind UDP/DTLS listener socket to addr 39.39.39.39:3478
0: Trying to bind UDP/DTLS listener socket to addr 39.39.39.39:3478, again...
这是我的turnserver.conf
文件。
listening-ip=39.39.39.39
listening-port=3478
tls-listening-port=5349
relay-ip=39.39.39.39
external-ip=39.39.39.39
relay-threads=50
lt-cred-mech
userdb=/etc/turnuserdb.conf
# no-stdout-log
log-file=/var/tmp/turnserver.log
pidfile="/var/run/turnserver.pid"
我尝试打开一些端口,但不起作用。
$ firewall-cmd --list-ports
3478/tcp 3478/udp