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

When i start my project i try to connect to mongoDB i get this error:

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

Do you can help me?

Hello @PeralStudio welcome to the community!
Replit doesn’t use one static ip, you can instead allow the connection for all the ips.

I’m sorry that you’re affected by this issue!

1 Like