I have an App and a MongoDB database both hosted by DigitalOcean. When I add the app as a trusted source (tripled checked the name) my web app is unable to connect to the database. When I remove the app as a trusted source and allow the database cluster to be open all incoming connections then the app is finally able to connect.
I don’t understand why this would be? Is it because the component (web service) within my App is accessing the database and that hasn’t been whitelisted yet? If so, how would i whitelist it?
This just doesn’t really make any sense to me. Why would the IP whitelisting not work for just this web app but work fine for other droplets? I don’t see what I am doing wrong.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.