I have started a compute instance on Google Cloud and installed a Flask server. During setup I selected "allow htpp and htpps traffic". I started the server and it is running at port 8088. I can browse to the sever on the localhost (http://127.0.0.1:8088/).
I am trying to access the Flask server from an external browser. I have set a firewall rule to allow connections at port 8088, for ip ranges 0.0.0.0/0.
When I try to connect to the server making use of the instance's external ip at the 8088 port, I get "connection refused" (http://34.70.123.xxx:8088/)
I have searched for a solution, and I have managed to get this setup working with a Superset server, but I can seem to solve this one.
UPDATE
I think one of the issues is that I ran the flask sever at 127.0.0.1, which is only visible locally. I have changed the server config to run at 0.0.0.0, which should be visible to the external network. But now when I navigate to the external ip address, I get the error "This site can’t be reached 34.70.123.xxx unexpectedly closed the connection."
UPDATE 2
I have managed to access the server from an external browser. Using http:// instead of https:// worked. Not sure why the secured protocol doesn't work.