I have two different applications, One running on a CentOS machine and another one on Ubuntu. I am using Internal ip (From VPC network range) to connect to Mongo Server from my local machine (Using different clients like compass, mongo shell, nosql booster).
On Ubuntu, with bind ip as 127.0.0.1, It allows to connect but on CentOS it doesn’t. (I had to define 0.0.0.0 on CentOS in order to connect from my local machine)
I am not able to understand why this is happening. Is this OS related thing or this is expected to be the same way?