title: Flask web app not responding to external requests on EC2
body: <p>I've got a very simple Flask application that I'm hosting on an Amazon EC2 node and for whatever reason I can't see it externally.  The flask app is here</p>
  
  <pre><code>from flask import Flask
  
  app = Flask(__name__)
  app.config['DEBUG'] = False
  
  @app.route('/')
  def hello_world():
      return 'Hello World!'
  
  @app.route('/p1')
  def p1():
      return "P1!!!"
  
  if __name__ == '__main__':
      app.run(host='0.0.0.0')
  </code></pre>
  
  <p>When I run the script it looks like the server is running fine, so in my browser (on a different computer) I put the following :5000 (the IP address I pull off of AWS).  What's interesting is that it just seems to hang, and eventually produces an error.  My guess is that I'm missing some configuration in AWS but I don't know what it is.  Any help would be greatly appreciated</p>
  
  <p><strong>EDIT</strong> I tried deploying the app on my local machine.  And when I try to access it from the browser using localhost:5000, it works.  When I replace localhost with my IP address, it fails</p>