MongoDB on Debian 10

By default mongod binds to local interface only and it will restrict remote connections
Comment out the bindip parameter if you want any remote connections to be accepted(not recommended)
Did you try bindIp: “127.0.0.1,0.0.0.0”
Using 0.0.0.0 is also not recommended

Also it appears you started mongod as root.You should not run mongod as root
Start it as normal user i think mongod is the owner

1 Like