How to connect to mongodb remotely

Posted February 19, 2018 9k views
MongoDBUbuntuLinux Commands


How to connect to MongoDB remotely, I have made changes to the file in the Droplet.
File name:-mongod.conf.orig


edited by bobbyiliev

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.

Submit an Answer
1 answer


I would recommend following part 3 from this step by step tutorial on how to configure remote access for your MongoDB instance:


by Melissa Anderson
MongoDB is a document-oriented database that is free and open-source. It is classified as a NoSQL database because it does not rely on a traditional table-based relational database structure ... In Part One of this tutorial we'll use the MongoDB Repository to install the latest version of MongoDB. In Part Two, we'll enable authentication to secure it on the local system. Finally, in Part Three, we'll show how to more securely allow remote connections if they're needed.