Cannot connect to my cluster

I cannot connect to my cluster as described Lecture: Connecting to Your Sandbox Cluster from the mongo Shell

mongo "mongodb+srv://cluster0-w07p3.mongodb.net"  --username m001-student -password m001-mongodb-basics
MongoDB shell version v3.6.15
connecting to: mongodb://cluster0-shard-00-00-w07p3.mongodb.net.:27017,cluster0-shard-00-01-w07p3.mongodb.net.:27017,cluster0-shard-00-02-w07p3.mongodb.net.:27017/?authSource=admin&gssapiServiceName=mongodb&replicaSet=Cluster0-shard-0&ssl=true
2019-11-10T16:37:10.046+0300 I NETWORK  [thread1] Starting new replica set monitor for Cluster0-shard-0/cluster0-shard-00-00-w07p3.mongodb.net.:27017,cluster0-shard-00-01-w07p3.mongodb.net.:27017,cluster0-shard-00-02-w07p3.mongodb.net.:27017
2019-11-10T16:37:10.555+0300 I NETWORK  [ReplicaSetMonitor-TaskExecutor-0] Successfully connected to cluster0-shard-00-01-w07p3.mongodb.net.:27017 (1 connections now open to cluster0-shard-00-01-w07p3.mongodb.net.:27017 with a 5 second timeout)
2019-11-10T16:37:15.098+0300 W NETWORK  [thread1] Failed to connect to 3.230.220.106:27017 after 5000ms milliseconds, giving up.
2019-11-10T16:37:15.622+0300 I NETWORK  [thread1] Successfully connected to cluster0-shard-00-02-w07p3.mongodb.net.:27017 (1 connections now open to cluster0-shard-00-02-w07p3.mongodb.net.:27017 with a 5 second timeout)
2019-11-10T16:37:15.670+0300 W NETWORK  [ReplicaSetMonitor-TaskExecutor-0] Failed to connect to 3.230.220.106:27017 after 5000ms milliseconds, giving up.
2019-11-10T16:37:16.194+0300 I NETWORK  [ReplicaSetMonitor-TaskExecutor-0] Successfully connected to cluster0-shard-00-02-w07p3.mongodb.net:27017 (1 connections now open to cluster0-shard-00-02-w07p3.mongodb.net:27017 with a 5 second timeout)
2019-11-10T16:37:16.202+0300 I NETWORK  [thread1] Successfully connected to cluster0-shard-00-01-w07p3.mongodb.net:27017 (1 connections now open to cluster0-shard-00-01-w07p3.mongodb.net:27017 with a 5 second timeout)
2019-11-10T16:37:16.318+0300 W NETWORK  [thread1] Unable to reach primary for set Cluster0-shard-0
2019-11-10T16:37:16.549+0300 I NETWORK  [thread1] Marking host cluster0-shard-00-01-w07p3.mongodb.net:27017 as failed :: caused by :: Location11002: can't authenticate against replica set node cluster0-shard-00-01-w07p3.mongodb.net:27017: socket exception [CONNECT_ERROR] for cluster0-shard-00-01-w07p3.mongodb.net:27017
2019-11-10T16:37:16.773+0300 I NETWORK  [thread1] Marking host cluster0-shard-00-02-w07p3.mongodb.net:27017 as failed :: caused by :: Location11002: can't authenticate against replica set node cluster0-shard-00-02-w07p3.mongodb.net:27017: socket exception [CONNECT_ERROR] for cluster0-shard-00-02-w07p3.mongodb.net:27017
2019-11-10T16:37:17.001+0300 I NETWORK  [thread1] Marking host cluster0-shard-00-02-w07p3.mongodb.net.:27017 as failed :: caused by :: Location11002: can't authenticate against replica set node cluster0-shard-00-02-w07p3.mongodb.net.:27017: socket exception [CONNECT_ERROR] for cluster0-shard-00-02-w07p3.mongodb.net.:27017
2019-11-10T16:37:17.231+0300 I NETWORK  [thread1] Marking host cluster0-shard-00-01-w07p3.mongodb.net.:27017 as failed :: caused by :: Location11002: can't authenticate against replica set node cluster0-shard-00-01-w07p3.mongodb.net.:27017: socket exception [CONNECT_ERROR] for cluster0-shard-00-01-w07p3.mongodb.net.:27017
2019-11-10T16:37:17.232+0300 E QUERY    [thread1] Error: can't authenticate against replica set node cluster0-shard-00-01-w07p3.mongodb.net.:27017: socket exception [CONNECT_ERROR] for cluster0-shard-00-01-w07p3.mongodb.net.:27017 :
connect@src/mongo/shell/mongo.js:263:13
@(connect):1:6
exception: connect failed

I copied connection command from my cluster admin.
Can anyone help?

I can connect to your cluster by both short srv string and long string
Are you able to ping your cluster?
May be firewall,n/w issues preventing your connection or shell version mismatch
Make sure you selected correct string appropriate for your shell
Please check our forum.You will find many threads on shell connectivity issues

Try this long string but you need to investigate why srv string is failing

mongo “mongodb://cluster0-shard-00-00-w07p3.mongodb.net:27017,cluster0-shard-00-01-w07p3.mongodb.net:27017,cluster0-shard-00-02-w07p3.mongodb.net:27017/test?replicaSet=Cluster0-shard-0” --authenticationDatabase admin --ssl --username m001-student --password m001-mongodb-basics

Thanks, for the reply.

  1. I am able to ping ping cluster0-shard-00-01-w07p3.mongodb.net
  2. Port 27017 is open
  3. I tried 2 versions of mongo client (4.x that is a latest, and 3.6 that corresponds to server version)

from output that looks like cluster issue. Successfully connected to cluster0-shard-00-02-w07p3.mongodb.net.:27017 but Unable to reach primary for set Cluster0-shard-0

I recreated cluster in Germany and was able to connect