Cannot connect to Atlas cluster anymore either from shell or apllictaion

MongoDB shell version v4.0.10
Enter password:
connecting to: mongodb://mflix-shard-00-00-pcmt8.mongodb.net.:27017,mflix-shard-00-01-pcmt8.mongodb.net.:27017,mflix-shard-00-02-pcmt8.mongodb.net.:27017/test?authSource=admin&gssapiServiceName=mongodb&replicaSet=mflix-shard-0&ssl=true
2019-06-24T14:20:11.294+0530 I NETWORK  [js] Starting new replica set monitor for mflix-shard-0/mflix-shard-00-00-pcmt8.mongodb.net.:27017,mflix-shard-00-01-pcmt8.mongodb.net.:27017,mflix-shard-00-02-pcmt8.mongodb.net.:27017
2019-06-24T14:20:21.520+0530 W NETWORK  [ReplicaSetMonitor-TaskExecutor] Unable to reach primary for set mflix-shard-0
2019-06-24T14:20:34.011+0530 I NETWORK  [ReplicaSetMonitor-TaskExecutor] Cannot reach any nodes for set mflix-shard-0. Please check network connectivity and the status of the set. This has happened for 1 checks in a row.


*** It looks like this is a MongoDB Atlas cluster. Please ensure that your IP whitelist allows connections from your network.


2019-06-24T14:20:34.011+0530 E QUERY    [js] Error: connect failed to replica set mflix-shard-0/mflix-shard-00-00-pcmt8.mongodb.net.:27017,mflix-shard-00-01-pcmt8.mongodb.net.:27017,mflix-shard-00-02-pcmt8.mongodb.net.:27017 :
connect@src/mongo/shell/mongo.js:344:17
@(connect):2:6
exception: connect failed

My IP Whiteluist is set to everywhere

Hi @Karthik781,

I am able to connect using the below command, can you please give it a try?

 mongo mongodb+srv://m220student:m220password@mflix-pcmt8.mongodb.net

If you are still unable to connect, please make sure your firewall/anti-virus is off.

Kanika

1 Like