Network error while connecting to

while trying to connect to

C:> mongo

MongoDB shell version v4.0.8
connecting to: mongodb://
2019-04-05T15:13:44.258-0400 E QUERY    [js] Error: network error while attempting to run command 'isMaster' on host ''  :
exception: connect failed

Note am able to ping to this server,


Pinging [] with 32 bytes of data:
Reply from bytes=32 time=33ms TTL=37
Reply from bytes=32 time=14ms TTL=37
Reply from bytes=32 time=18ms TTL=37
Reply from bytes=32 time=15ms TTL=37

Ping statistics for
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 14ms, Maximum = 33ms, Average = 20ms

It’s working now. I installed mongodb 3.6 version and then voila! Connected!!

Had to use --ssl, while connecting.

C:\Program Files\MongoDB\Server\3.6\bin>mongo --ssl
MongoDB shell version v3.6.6
connecting to: mongodb://
MongoDB server version: 3.6.11
MongoDB Enterprise Cluster0-shard-0:SECONDARY>