python 2.7 - Flask web app not responding to external requests on EC2 -


i've got simple flask application i'm hosting on amazon ec2 node , whatever reason can't see externally. flask app here

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') 

when run script looks server running fine, in browser (on different computer) put following :5000 (the ip address pull off of aws). what's interesting seems hang, , produces error. guess i'm missing configuration in aws don't know is. appreciated

edit tried deploying app on local machine. , when try access browser using localhost:5000, works. when replace localhost ip address, fails

was able answer own question, both really

the problem having on aws inbound ec2 not allowing access through ports need.

when tried running on local machine @ work, firewall settings change address of localhost (and ip) that's why couldn't access outside of using localhost:5000


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -