I am trying to connect to the MongoDB in GCE from my local machine.
First, I open the port 27017 for my GCE.
Then I follow the instruction to edit "/opt/bitnami/mongodb/mongodb.conf"
bind_ip = 0.0.0.0
And restart the MongoDB server by
sudo /opt/bitnami/ctlscript.sh restart mongodb
However, I still can't connect to the mongodb remotely, connection timeout ...
Here is the connection command I run :
mongo admin --username root -p password --host HOST_IP --port 27017
I test the 27017 port by using open port check tool, it still shows the 27017 port is closed? Can anyone help me solve this problem?