title: Python Flask application not accessible from remote machine
body: <p>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.</p>
  
  <p>My code (taken from various tutorials) is given below:</p>
  
  <pre><code>from flask import Flask
  
  app = Flask(__name__)
  
  @app.route("/")
  def main():
      return "Welcome!"
  
  if __name__ == "__main__":
      app.run()
  </code></pre>
  
  <p>As you can understand, this application prints "Welcome!" whenever I hit <a href="http://127.0.0.1:5000/" rel="nofollow noreferrer">http://127.0.0.1:5000/</a>. But <strong>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</strong></p>
  
  <p>Any inputs on how to access Flask application (created in one machine) from another machine will be helpful</p>