Digital Ocean - Floating IP

Hello!

We attempt to configure a CND EDGE NODE @ DigitalOcean.

Using the main IP of machine -> OK - works good.

Using the FLOATING IP, (good for snapshot and up a machine once needs), keeping configuration, ssl and others settings, we got a lot of errors regarding:

CAN NOT BING SIP PORT 30000 to 30999

The only way was to revert to original machine IP.
 

Max

Administrator
Staff member
Good day.
Please make sure that main (external) VM IP is set to ip and ip_local. For example, we deployed test VM based on our DO marketplace image:
Code:
ipv4: 138.*.*.*
Floating IP:  104.*.*.*
and publishing works perfectly without any errors in server log with default settings
Code:
ip                     =138.*.*.*
ip_local               =138.*.*.*
Note that if you are using marketplace image, WCS should be updated to letest version manually:
Code:
cd /usr/local/FlashphonerWebCallServer/bin
./webcallserver stop
./webcallserver update
 

Max

Administrator
Staff member
Hello

You can't set ip_local to floating IP because ip_local is an address of physical or virtual network card and WCS will try to bind port on this address.
So you will always getting errors binding to floating IP.

Possible working configuration:
Code:
ip = {floating ip}
ip_local ={network card ip}
So WCS will bind ports on {network card ip} and will show {floating ip} to the World.
 

Max

Administrator
Staff member
A little clarification. Please set
Code:
ip = {network card ip}
ip_local ={network card ip}
(if you're using marketplace image these parameters are set by default)
Server should work.
It is not recommended to set {floating ip} to server settings because floating IP feature is intended to quick switching from one instance to another without restarting instance. ip parameter changing requires WCS restart.
 
Top