Error connecting mongoDB

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:

NOTE: Local Server

Can you connect by shell?
Show your connect string and others parameters you are using in your code

I can through docker, but not through Node.

this is the code part