Is it possible to host a web application and Mongo Database in seperarte Server and client PC How to do that?
How to host MONGO DB in one pc and application in other pc?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Deepak TewatiaRank #143 · 15.9K reputationPosted Nov 5, 2024, 11:48 AM EST
Yes, it is possible. Edit mongod.conf, set bindIp to 0.0.0.0 for remote access then open port 27017 on DB Server firewall for MongoDB access. Now use MongoDB URI in the web application which is in another PC.