Run coturn server with dynamic IPProblemThose of you who run coturn with a dynmic ip address will encounter a problem, that the ip address needs to be "hard coded" to the coturn config file. If your ip address changes every 24h, you can not write your ip to the config file. After spending some time to write a bash script to solve the problem, I will present the result here to you. SolutionFollow the steps:
The bash script "getIPchange.sh" will detect ip changes. The script is triggered by cron every minute. In the case of an ip change, the new ip will be written to your coturn config file. If you don't have a provider where you can place the myip.php file, you can also use services like http://icanhazip.com/. Now you can enjoy your turn server by doing video chats in xmpp or nextcloud talk using your private turn. |