The code I currently have is something like this:
from flask import Flask
app = Flask(__name__)
@app.route("/")
def main():
return "welcome to my page"
app.run(debug=True, host="0.0.0.0", port=8080)
When I try to run the code on Pychar I get the following results:
"C:\Users\radbo\AppData\Local\Programs\Python\Python39\python.exe C:/Users/radbo/yay.py
* Serving Flask app "yay" (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: on
* Restarting with stat
* Debugger is active!
* Debugger PIN: 161-701-749
* Running on http://0.0.0.0:8080/ (Press CTRL+C to quit)
"
Instead this is returned:
Hmmm… can't reach this page It looks like the webpage at http://0.0.0.0:8080/ might be having issues, or it may have moved permanently to a new web address.
ERR_ADDRESS_INVALID
My question is as follows: Is my server connectable or does it not exist?