I am a newcomer to flask. I cannot access localhost:5000 or 127.0.0.1:5000 . I am using flask . I have tried many solutions but none of them worked for me. Here's the code
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return ('Hello World')
if __name__ == '__main__':
app.run()
I get this
* Serving Flask app "__main__" (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: off
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
when i go to localhost:5000 or 127.0.0.1:5000 , i get
127.0.0.1 refused to connect** or **localhost refused to connect