Connection issue with mongoshell

While running the script it is saying error for me.

mongo “mongodb+srv://sandbox.idws5.mongodb.net/test” --username m001-student

2021-02-23T08:58:44.457+0000 I NETWORK [js] Cannot reach any nodes for set atlas-sbt3xb-shard-0. Please check network connectivity and the status of the set. This has happened for 8 checks in a row.
2021-02-23T08:58:44.457+0000 E QUERY [js] Error: connect failed to replica set atlas-sbt3xb-shard-0/sandbox-shard-00-02.idws5.mongodb.net.:27017,sandbox-shard-00-00.idws5.mongodb.net.:27017,sandbox-shard-00-01.idws5.mongodb.net.:27017 :
connect@src/mongo/shell/mongo.js:328:13
@(connect):1:6
exception: connect failed

You have to allow connection from anywhere.