Вопрос

I've installed and configured rfc5766-turn-server under Cygwin. Now, how do I register it as a Windows service?

Это было полезно?

Решение

In a cygwin shell, run:

cygrunsrv -I turnserver -p /usr/local/bin/turnserver -a "arguments"

Run /usr/local/bin/turnserver -? to list possible arguments.

WARNING: turnserver assumes you are using a static ip address. If the computer is configured to use DHCP, and the DHCP server assigns the computer a static ip, make sure the service startup type is Automatic (Delayed Start). Otherwise, the server will attempt to bind to the network interface before the computer acquires an address from DHCP and fail.

If you see Trying to bind fd <number> to <ip-address:port>: errno=125 in the log file, this is what happened.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top