MongoDB Atlas connection not working on Heroku for NodeJS MongoDB Atlas connection not working on Heroku for NodeJS heroku heroku

MongoDB Atlas connection not working on Heroku for NodeJS


Ok i'll give more detailed answer as described in @Jack comment section.

1. Go to the Network Access sectionenter image description here

2. Click add IP address button on the right sectionenter image description here

3. Click allow access from anywhere.enter image description here