I build a self hosted instance of mongodb in AWS EC2 with username and password configs.
It work correclty with connection in compass or in my app using the uri like this:
When I fetch 184.108.40.206:27017, I get this message:
It looks like you are trying to access MongoDB over HTTP on the native driver port.
I want to use an uri using a subdomain like the uri provided by mongo atlas.
something like this
then deny all access to port via IP address 220.127.116.11:27017.
I want only acces to mongo instance via one uri with domain name.