Here is my situation:
I have a public server which allow users access from the internet, but the data is stored in a local computer. This computer can normally also connect to internet, but when the local system's internet connection is down I want to make sure I can run my local system well. So I want to configure a replica set between the public server and the local server; but the local server has no fixed internet IP address.
Here is my question:
How can I achieve my goal, to set up MongoDB on a local server and a public server, and sync data between these servers.
There are severe obstacles to building this kind of system: