I have an Ubuntu VM in Google cloud which is having my Mongo Instance running.
- I have enabled authentication
- Mongo config is configured to bind for the 127.0.0.1 and the internal IP of the server.
- In google console I've the 27107 TCP port opened.
- The port is open in the VM too.
But when i try to connect to the Mongo instance using the internal IP of the server from a Node JS App Service I'm getting an error as shown below. any idea why is that?
failed to connect to server [:27017] on first connect [MongoError: connection 0 to :27017 timed out]' }
I'm also able to connect to server using mongo shell using the google cloud console.