I am trying to connect to a remote mongoDB server in an EC2 instance with Compass, I have set a security group inbound rule for port 27017 to 0.0.0.0 in aws, and in the mongodb configuration file I have set the following and restarted the server:
# network interfaces
net:
port: 27017
bindIp: 0.0.0.0
Yet, I continue to get a timeout error while trying to connect remotely:
connect ETIMEDOUT ec2-public-ip:2701
What configuration could I be missing?
It was the Windows Server's firewall
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.