I installed Mongodb on my remote server using this documentation. I have Ubuntu 16.04 on my remote server. Mongodb got installed successfully. I added the user like this:
Can you connect by shell remotely as well as locally using same srv connect string?
Is port 27017 open to connections
Could be firewall blocking your connection
I am not using the srv string as you can see in the question. Aftter ssh-ing into the server, I can connect to mongodb using the same string. There is no firewall blockage as I can connect to server from the same host but cant connect to mongodb. And this is the result of telnet:
telnet 139.162.147.195 27017
Trying 139.162.147.195...
telnet: Unable to connect to remote host: Connection timed out
Just for testing use 0.0.0.0 for bindIp and see if you can connect
Do you have the option to fill in individual params instead of connect string?
Use advance options and check ssh tunnel
Try different options