Error: MongooseServerSelectionError: Could not connect to any servers in your MongoDB Atlas cluster

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: //https://www.mongodb.com/docs/atlas/security-whitelist/

I am getting this error, please can a simple solution be provided to solve this problem