I bind with my VPS public IP address. I figurate with help of my mistake that my localhost apps connect with success with my remote server.
Allow MongoDB remote access only for specific IP? Any options.
I added :
security:
clusterIpSourceWhitelist:
- IPADDRESS
authorization: enabled
I use centos 8.3 .
But still i can connect from my computer without username and password for mongodb!
I run it like :
mongod --config /etc/mongod.conf