Hi All I am new to Python Flask. After reading basic manuals I tried to create a sample Flask application and successfully did in my machine.
My code (taken from various tutorials) is given below:
from flask import Flask
app = Flask(__name__)
@app.route("/")
def main():
return "Welcome!"
if __name__ == "__main__":
app.run()
As you can understand, this application prints "Welcome!" whenever I hit http://127.0.0.1:5000/. But when I try to access the application from some other machine within same network by replacing 127.0.0.1 with my system's IP address, I am getting "Network Error (tcp_error) Connection Refused" error
Any inputs on how to access Flask application (created in one machine) from another machine will be helpful