I\'m new to MongoDB. I\'m trying to connect to my remote mongo database from my work machine( I tried for both mongohq as well as mongolab). I\'m getting the error listed be
As per question comments, your mongo shell client can't connect to the mongo instance. Assuming that your internet connectivity is fine, the most common reason for the failure is that the ports are blocked on your network.
Some ISPs automatically block these ports by default as an additional security protection for users that don't need them open. Contact your ISP or network admin, they should be able to help you out.