title: Flask is running in different port
body: <p>I am running a simple flask app like following in pycharm </p>
  
  <pre><code>if __name__ == '__main__':
      app.run(host='0.0.0.0', port=5005)
  </code></pre>
  
  <p>When I run it , it always run in 5000 port ,this the message I am seeing in pycharm console </p>
  
  <pre><code> * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
  </code></pre>
  
  <p>But rather than using pycharm if I run the project from terminal like following </p>
  
  <p><code>python3 app.py</code> </p>
  
  <p>It runs on 5005 port . </p>
  
  <p>How can solve this ?</p>