I set Firewall Rule for my local google compute instance at host '0.0.0.0' and port 7000.
And I executed python server.py
, it was running on https://0.0.0.0:7000
but when I enter https://external-ip:7000
on my local browser it did not work.
So how can I run flask on google compute engine and open in my local computer browser?
server.py
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello World’
if __name__ == '__main__':
app.run(debug=1,port=7000,host='0.0.0.0')