Error with connect Atlas from Shell or Compass

Hi everybody,
I can not connect to my Atlas neither from Shell nor Compass,
I used 0.0.0.0/0 in IP white list.
some of the errors in Shell are:

W NETWORK [ReplicaSetMonitor-TaskExecutor] DNS resolution while connecting to standbox-shard-00-00.3jhk5.mongodb.net:27017

I NETWORK [ReplicaSetMonitor-TaskExecutor] Cannot reach any nodes for set atlas-2029eb-shard-0

what should I do?

Show us the connect string you used
Is it SRV or a different one?

May be your network not supporting SRV type if you have tried that

PS:I can connect to your cluster

This is my connect string for MongoDB Shell:

mongo “mongodb+srv://standbox.3jhk5.mongodb.net/myFirstDatabase” --username hamid --password saadi

PS: I created the hamid username with the saadi password and the atlasAdmin role.

mongodb://hamid:saadi@standbox-shard-00-00.3jhk5.mongodb.net:27017,standbox-shard-00-01.3jhk5.mongodb.net:27017,standbox-shard-00-02.3jhk5.mongodb.net:27017/myFirstDatabase?ssl=true&replicaSet=atlas-2029eb-shard-0&authSource=admin&retryWrites=true&w=majority

mongodb+srv://hamid:saadi@standbox.3jhk5.mongodb.net/test

I used these two connect string for MongoDB Compass, but in both cases this error comes:

connect ETIMEDOUT 34.85.0.98:27017

PS: I cannot ping 34.85.0.98 It says: Request timed out.

Can you connect by shell?
Looks like network issue.Are you connected to VPN
Did you try from another location or mobile hotspot

I can connect by shell and Compass with the connect strings you provided

No I cannot connect by shell,
I am not connected to VPN,
I connect from Iran, I use both wifi (ADSL) and mobile hotspot.

What can I do if there is a network issue?

It is highly likely there is some US embargo being enforced. Though why you could access the cloud console?

1 Like

I do think so too.
I could access the cloud console and Atlas without issue.

Wow, I connected to Atlas by installing a VPN :slightly_smiling_face:

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.