Question

I have set up a google cloud sql server using the tutorial on youtube. However, Whenever I try to connect to it through the browser, the connect to it through the browser, the error i am getting is ERR_CONNECTION_REFUSED . The firewalls I have set up correlate to whats in the browser. I can also SSH into the VM. But the VM always rejects my connection. I have been trying for days.

Here are my VM settings allowing http connections

Here is my VM External IP Address

This is what the browser tells me

Here are my VM Settings allowing http connections

Here is my VM External IP Address Here is what the browser tells me when i attempt to connect.

Was it helpful?

Solution

Are you referring to this video https://www.youtube.com/watch?v=_kQXgjIfLgo?

In that video there are some steps missing such as install the web server (e.g. Apache) and PHP in the VM. After you install them, you can execute the following command in the VM:

php /var/www/index.php 

If it works you can see the source code of the resulting page and if not you'll have an error to solve (maybe a package to install like php-mysql).

Once you can see the resulting page in the VM you can try to load the page through the browser of your machine. If it still doesn't work there is an Apache or network misconfiguration.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top