title: How can I change the host and port that the flask command uses?
body: <p>I want to change the host and port that my app runs on. I set <code>host</code> and <code>port</code> in <code>app.run</code>, but the <code>flask run</code> command still runs on the default <code>127.0.0.1:8000</code>. How can I change the host and port that the <code>flask</code> command uses?</p>
  
  <pre><code>if __name__ == '__main__':
      app.run(host='0.0.0.0', port=3000)
  </code></pre>
  
  <pre class="lang-none prettyprint-override"><code>set FLASK_APP=onlinegame
  set FLASK_DEBUG=true
  python -m flask run
  </code></pre>