Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Viewing all articles
Browse latest Browse all 29245

POST to AWS EC2 Mongodb database does not work

$
0
0

When trying to make a POST to a mongo db, I get no response from the page. Things work just fine when I run them on the aws ubuntu server with things being saved properly to the database, but when run from a non local machine nothing happens. I have the following set up regarding my port config:

Connected to the db --> mongoose.connect("mongodb://3.134.242.28:27017/yoga"); Have port 27017 open (as well as 5000 and 3000) to all 0.0.0.0/0 traffic And have the IpBind (in the /etc/mongod.conf) set to 3.134.242.28 (have also tried 0.0.0.0 and the all binding flag command)


Viewing all articles
Browse latest Browse all 29245

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>