Windows10 - Cant Connect to Atlas Cluster from MongoDB Shell

c:\Users\petem>mongo “mongodb+srv://sandbox-hkph9.mongodb.net/test” --username m001-student
MongoDB shell version v4.2.0
Enter password:
connecting to: mongodb://sandbox-shard-00-02-hkph9.mongodb.net:27017,sandbox-shard-00-00-hkph9.mongodb.net:27017,sandbox-shard-00-01-hkph9.mongodb.net:27017/test?authSource=admin&compressors=disabled&gssapiServiceName=mongodb&replicaSet=Sandbox-shard-0&ssl=true
2019-08-19T20:51:57.853-0500 I NETWORK [js] Starting new replica set monitor for Sandbox-shard-0/sandbox-shard-00-02-hkph9.mongodb.net:27017,sandbox-shard-00-00-hkph9.mongodb.net:27017,sandbox-shard-00-01-hkph9.mongodb.net:27017
2019-08-19T20:51:57.858-0500 I CONNPOOL [ReplicaSetMonitor-TaskExecutor] Connecting to sandbox-shard-00-00-hkph9.mongodb.net:27017
2019-08-19T20:51:57.859-0500 I CONNPOOL [ReplicaSetMonitor-TaskExecutor] Connecting to sandbox-shard-00-02-hkph9.mongodb.net:27017
2019-08-19T20:51:57.859-0500 I CONNPOOL [ReplicaSetMonitor-TaskExecutor] Connecting to sandbox-shard-00-01-hkph9.mongodb.net:27017
2019-08-19T20:52:24.912-0500 I CONNPOOL [ReplicaSetMonitor-TaskExecutor] Connecting to sandbox-shard-00-00-hkph9.mongodb.net:27017
2019-08-19T20:52:24.912-0500 I CONNPOOL [ReplicaSetMonitor-TaskExecutor] Connecting to sandbox-shard-00-02-hkph9.mongodb.net:27017
2019-08-19T20:52:24.917-0500 I CONNPOOL [ReplicaSetMonitor-TaskExecutor] Connecting to sandbox-shard-00-01-hkph9.mongodb.net:27017
2019-08-19T20:52:24.917-0500 W NETWORK [ReplicaSetMonitor-TaskExecutor] Unable to reach primary for set Sandbox-shard-0
2019-08-19T20:52:24.918-0500 I NETWORK [ReplicaSetMonitor-TaskExecutor] Cannot reach any nodes for set Sandbox-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-08-19T20:52:24.919-0500 E QUERY [js] Error: connect failed to replica set Sandbox-shard-0/sandbox-shard-00-02-hkph9.mongodb.net:27017,sandbox-shard-00-00-hkph9.mongodb.net:27017,sandbox-shard-00-01-hkph9.mongodb.net:27017 :
connect@src/mongo/shell/mongo.js:341:17
@(connect):2:6
2019-08-19T20:52:24.921-0500 F - [main] exception: connect failed
2019-08-19T20:52:24.921-0500 E - [main] exiting with code 1

c:\Users\petem>ping sandbox-shard-00-02-hkph9.mongodb.net

Pinging ec2-34-194-233-67.compute-1.amazonaws.com [34.194.233.67] with 32 bytes of data:
Reply from 34.194.233.67: bytes=32 time=56ms TTL=40
Reply from 34.194.233.67: bytes=32 time=217ms TTL=40
Reply from 34.194.233.67: bytes=32 time=37ms TTL=40
Reply from 34.194.233.67: bytes=32 time=37ms TTL=40

Ping statistics for 34.194.233.67:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 37ms, Maximum = 217ms, Average = 86ms

I am able to connect
May be firewall/anti virus preventing your connection
Also whitelist the IP as suggested