How to setup coTurn for Mac
First download it from: https://github.com/coturn/coturn/wiki/Downloads
Then extract it, Then enter into the folder with Terminal
then enter the command
sudo ./configure
While configuring it may occur error relates to libevent
You have to install libevent by Homebrew, If it is not installed you can install it with command
ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
Then install the libevent with command
brew install libevent
After configured successful, enter make command
make
Then make install
make install
Now, if everything successful, coTurn will be ready to use. An usage instruction will be shown on the Terminal like this
You have to create config file copy file from
/usr/local/etc/turnserver.conf.default
Then paste and rename it to
/etc/turnserver.conf
or
/usr/local/etc/turnserver.conf
Then you can try run it with command
turnserver