MongoDB connection refused

did your app/code/server work with "127.0.0.1"? if it does, then you may need to change your settings for IPv6 as the "localhost" would be "::1", or check your system for this. there are other discussions about this IPv6 effect on the Forums. check them if you need.

if this is not the case, then you need to supply more info about your configuration.