I've hosted two VMs on the same machine, one is active in nature i.e. hosting a service and is connected to a client (client is running directly on the host machine). I've to implement a fault tolerance service, i.e. on the failure of primary VM, the client is automatically gets connected to the secondary VM given that both VMs are hosting the same service.
I somewhere read about floating IPs, but when I checked, I found that it is a paid service. Is there any simple way i can achieve this which doesn't require any money to spend?
The machine is Linux-based, specifically, the host is ubuntu 20.* and VMs have ubuntu 18.*.