This article suits more for a blog, but I've decided to share this information in our articles section.
I have not found any good article on this topic, or maybe I just can't search properly :(
We, MyChat developers, are using the TURN server for Windows that I built back in 2015 when we started to develop calls in the chat. Now I want to update it. But I've faced the struggle with the repeated building of the TURN server. I did it before, but I completely forgot how.
Let's try another, a Windows-one-mouse-click way.
Secondly, take coturn source files
I've made mirror copies on our hosting just in case:
Let's install Cygwin.
Choose the Internet as a download source for packages:
Next, choose the folder location with Cygwin and place it for downloading packages before installation. You can delete them later after the installation process.
I chose the first file source, but you can choose any other if you want. Just make sure that it has the packages you need:
Press next, and you will see this window:
In a drop-down list "view" select "full" and search the packages you need. For each package, in the column "new" in the list, mark the latest version from all available (except text ones):
A list of packages that I installed (you can skip packages with "64" in the title as you do not need them for a 32-bit system):
Find one-by-one all specified packages and select the installation version. Press "Next" and watch the exciting installation process:
When the installation is complete, open the folder in the Explorer with installed Cygwin -> home -> (your user name), and unzip the Coturn files here. You will see the following:
Now, launch the emulator Cygwin.bat.
As I got used to normal navigation for disk structure, I launched mc (Midnight Commander).
It immediately opens a user home folder with the folder "coturn-master". Enter this folder and run "configure" to make a build script.
Makefile is ready, let's make a build. Write the command "make", run it, and wait for the result:
And the final step, write and run the command "make install":
That's all folks, your turn server is ready to work.
We need a minimum functionality for calls over the server.
I mercilessly cut the content of the turn server to avoid useless files. I won't describe the whole cleaning process, it is better to show the result:
That is all you need for the turn server's regular work. The folder "etc" has a file with the configuration "turnserver.conf". You can configure this file and enjoy the work of your own TURN server for Windows (the file "turnserver.conf.default" has a description for configuration).
|< <<<=====||=====>>> >|