Unable to connect to MongoDB Atlas. Error in IP whitelisting. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Unable to connect to MongoDB Atlas. Error in IP whitelisting.

I'm trying to my MondoDB Atlas server. I'm a beginner to Node.js and MongoDB. While connecting, I get this error:- UnhandledPromiseRejectionWarning: MongooseServerSelectionError: Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted. Make sure your current IP address is on your Atlas cluster's IP whitelist: I've tried whitelisting my IP as well as whitelisting every IP (0.0.0.0) but then also it's giving same error. Please help me on this

27th May 2020, 6:54 PM
Shashank Shekhar
Shashank Shekhar - avatar
1 Answer
0
I am facing the same issue for the last few days. I have tried everything. Please guide me to solve it.
12th Mar 2022, 5:57 PM
Imran Wahid
Imran Wahid - avatar