techtinkerer
techtinkerer

Reputation: 1300

deploying flask app to EC2

I installed flask on my AWS EC2 machine.

now, from a local machine, the website is supposed to load with localhost and port 5000 but it is not working similarly with http::5000

I tried to add a rule in Security groups as : All TCP, 0.0.0.0/0 -- I am not sure how to allow in-bound traffic to this box.

any help will be appreciated.

Thanks !

Upvotes: 1

Views: 1108

Answers (1)

slashdottir
slashdottir

Reputation: 8516

I had trouble with this. Until I tried adding an inbound custom tcp rule to my security group associated with the running instance.

Something like:

Custom TCP Rule, Protocol: TCP, Port Range: 5000, Source: 0.0.0.0/0

Custom TCP Rule, Protocol: TCP, Port Range: 5000, Source: ::/0

Upvotes: 1

Related Questions