I\'ve just installed MongoDB (standard Ubuntu build, not the latest stable) and for some reason I can\'t connect:
Mon Feb 6 03:11:22 Error: couldn\'t connect to
You must specify the IP (199.21.114.XX), by running mongo 199.21.114.XX
.
Otherwise, if you want it to listen on localhost as well, you should remove the bind_ip
setting in your config file.
Update Check your firewall config. Since you're connecting to the external IP, it can be configured to block, even from the local box.