Connection issue with mongoshell

While running the script it is saying error for me.

mongo “mongodb+srv://” --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/,, :
exception: connect failed

You have to allow connection from anywhere.