title: Having problems accessing port 5000 in Vagrant
body: <p>I am trying to teach myself Flask in a Vagrant environment. I understand that Flask runs a server on port 5000 by default. In my Vagrantfile I have:</p>
  
  <pre><code>config.vm.network :forwarded_port, guest: 80, host: 8080
  config.vm.network :forwarded_port, guest: 5000, host: 5000
  </code></pre>
  
  <p>I have a simple tutorial Flask app: </p>
  
  <pre><code>from flask import Flask 
  app = Flask(__name__)
  
  @app.route('/hello')
  def hello_world():
      return 'Hello world!'
  
  if __name__ == '__main__':
      app.run(debug=True)
  </code></pre>
  
  <p>Yet when I run <code>python hello.py</code> in my Vagrant environment and subsequently go to <code>127.0.0.1:5000/hello</code> in Chrome on my desktop, I can't connect.</p>
  
  <p>I don't know nearly enough about networking. What am I missing?</p>