we have an EC2 MongoDB 2.4 instance from Amazon MarketPlace. when i try to access it from my computer using the mongo command like so:
mongo xx-xx-xx-xx-xx.c
Amazon created mongo security group without 27017 open. opening port 27017 to my pc fixed the issue.