Port 27017 command Line


I am able to reach the “port test - http://portquiz.net:27017/” page through browser. However, I cannot connect to this port in command prompt.(telnet portquiz.net 27017) is timing out and my connection is not allowed.

Here is the error message below
Connecting To portquiz.net…Could not open connection to the host, on port 2701
7: Connect failed

Is it still OK to proceed with course or I should fix this problem to proceed?


Try pinging the cluster from your command line:

  ping cluster0-shard-00-00-jxeqq.mongodb.net

And if 27017 port is getting used in some other process, you need to stop the process. In linux, you can find top processes using top command.

For more cluster connection issues, check this: Compass Connection [Solution]