Dilip Kheni
Dilip Kheni

Reputation: 485

Bind Ip not working in mongod.conf file

I want to add protection like no one can access mongodb database outside the ip address that mention in bindIp mongod.conf file.

# network interfaces
net:
  port: 27017
  bindIp: 127.0.0.1,110.3.4.453

I have added Ip address like mention in above but its not working.

Upvotes: 1

Views: 1184

Answers (1)

abdul
abdul

Reputation: 1581

Try wrappin up your ips with [] like bindIp: [127.0.0.1,110.3.4.453]. I am using version 3.2.0 and this is working fine for me.

Upvotes: 2

Related Questions