Error running the given command


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:


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

Is your port 27017 open? Check by clicking on:

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 -,,

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

Hope it helps!

Shubham Ranjan
Curriculum Support Engineer