Error running the given command

MongoError

Hello. I’m getting this error while trying to take the course. Can you please help me solve it?

Doing everything as it says in the course material. Even copied then pasted the command.

And if I try to run the command without previously entering:

mongoerror2

In the first snapshot it failed because you are already at mongo prompt
When you run mongo on Windows it connects to default mongodb instance

In second snapshot what you ran is correct but it is failing due to firewall/network issues
Please make sure no firewall/vpn/antivirus is preventing your connection
Are you able to ping cluster0-shard-00-00-jxeqq.mongodb.net

Is your port 27017 open? Check by clicking on: http://portquiz.net:27017

The port is open. I got the following: " You have reached this page on port 27017 .

Your network allows you to use this port. (Assuming that your network is not doing advanced traffic filtering.)"

But having troubles pinging it. I get connection time out messages. Even after turning off my firewall.

In this case, I would suggest you to talk to your IT team and ask them to allow incoming requests from these IP addresses - 34.195.121.130, 34.205.152.216, 52.4.238.74.

Alternatively, you can also try to connect using some other network such as your home network / Mobile hotspot.

Hope it helps!

Thanks,
Shubham Ranjan
Curriculum Support Engineer