By skeddtemp
I don’t know much about server configuration (someone set it uyp for me), but I would like to connect to my mongodb server with compass. I put in the hostname and port which I know is correct. I don’t understand what any of the other fields mean, but when I click connect, it says mongodb is not running. I tried adding the SSL certificate I use to connect remotely (chose “Server Validation” under SSL, and picked the file), but still no luck.
What else can I do? I’m not sure if there is authentication on mongodb and have no idea how to find it.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
I would recommend following the step by step instructions from their official website:
https://docs.mongodb.com/compass/master/connect/
Note that you if you have Compass running locally on your PC, then you might have to allow your IP address via your droplet’s firewall:
sudo ufw allow from your.home.ip.here
Then check the status:
sudo ufw status
Hope that this helps! Regards, Bobby
Hello I have the same problem and i did the sudo ufw allow from (my ip) and i am still not able to connect
i get:
connect ECONNREFUSED (SERVER IP):27017
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.