Connection to Cluster not working

Hello,

I am trying to connect to Atlas using NodeJs.
My code is as below.

mongodb+srv://s_bist:@cluster0.qrmng.mongodb.net/MeanStack?retryWrites=true&w=majority

It gives me timed out error in Compass.
In the code, it gives me the following error.

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

I have whitelisted the ip address 0.0.0.0/0 so that it can be accessed from every where.

Can you please guide me what is wrong here?

Regards

Shailesh

Can you connect by shell?

As an alternative you can fill individual fields for connection and try for Compass