title: Flask always listens default address and port
body: <p>I am trying to access my flask program on localhost from other devices like Android phone in my network.</p>
  
  <p>I can access my localhost created using Apache but can not access program created by Flask.</p>
  
  <p>This is my Flask program:</p>
  
  <pre><code>from flask import Flask
  
  app = Flask(__name__)
  
  @app.route('/')
  def home_page():
      return '&lt;h1&gt;Welcome to my site!&lt;/h1&gt;'
  
  if __name__ == '__main__':
      app.run(host='0.0.0.0', port=5050, debug=False)
  </code></pre>
  
  <p>When I run it, it always listens 127.0.0.1:5000.</p>
  
  <pre><code> * Serving Flask app "server"
   * Forcing debug mode off
   * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
  </code></pre>
  
  <p>I can see my PHP files in localhost but cannot see Flask program. (i.e. <a href="http://my_ip:5000" rel="nofollow noreferrer">http://my_ip:5000</a> doesn't work)</p>