Connection failed with mongoshell

I can’t connect to sandbox cluster with mongosh, getting this error.

C:\Users\ed1mo>mongosh “mongodb+srv://” --username m001-student
Enter password: *******************
Current Mongosh Log ID: 61c1e370eb869ec40e5d09ae
Connecting to: mongodb+srv://
MongoServerSelectionError: connect ETIMEDOUT


Hi @_Edjander_Mota, welcome to the community.
Can you please make sure that you have whitelisted all the IPs? If not already, follow the steps as mentioned in the previous lecture.

In case you have any doubts, please feel free to reach out to us.

Thanks and Regards.
Sourabh Bagrecha,
Curriculum Services Engineer

I was able to connect from the IDE, but I couldn’t connect from my machine’s shell.

the problem was the firewall.