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    127.0.0.1:27017        0.0.0.0:0              LISTENING
TCP    127.0.0.1:51186        127.0.0.1:27017        TIME_WAIT

my mongos.conf file is

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

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 *