mongodb is not accessible through IP address 35.x.x.x

Posted on

Question :

I have installed mongo DB on window server that is accessible on localhost:27017 but not accessible on 35.x.x.x:27017.

I checked:

27017 Port is open.
mongoDB is running.

output of: netstat -anb | findstr :27017

TCP              LISTENING

my mongos.conf file is

dbpath = d:MongoDBDatabase
logpath = d:MongoDBLogslog.txt
noauth = true # use 'true' for options that don't take an argument

Answer :

The answer is simple, you have a typo at your config. There should be bindIp and not bind_ip.

Leave a Reply

Your email address will not be published. Required fields are marked *