bindIp is not a whitelist of IPs that are allowed to connect, this is assigning the IP address that the mongo process will run on, and other hosts will use to connect. Which should be the IP of the server.
Allowing all hosts to connect to your mongodb on a linux server requires you to open the FW for the port (27017) on the server.
@tapiocaPENGUIN Does it means that we can’t whitelist an IP through bindIP property? If not, then how to achieve that?
In MongoDB Atlas, it is fully managed by Network Access option. But in Community Server (hosted on ec2), how to achieve that. Could you please assist on it?