mongoose wont connect to ec2 mongodb instance mongoose wont connect to ec2 mongodb instance mongoose mongoose

mongoose wont connect to ec2 mongodb instance


Make sure that you have registered 27017 port in Outbound ports In the EC2 security group.

Then try to access the DB. and if you have already added port and still experiencing the error then check if you MongoDB process is running as a service(i.e. in the background). If not then follow this procedure


Got it. I can't connect from my localhost to my mongodb server (Don't know why) but when i'm connecting to my mongodb server from my ec2 instance it work. So it's fine :)