I've opened port 80 in the web console on my E2C instance's security group but I still can't access it via the public dns in the browser.
Any ideas?
I've opened port 80 in the web console on my E2C instance's security group but I still can't access it via the public dns in the browser.
Any ideas?
This is actually really easy:
Some quick tips:
nmap -v -p 80 127.0.0.1
output 80/tcp open upnp
, and i had disabled the firewall with sudo ufw disable
. i found the reason why it wasn't working was actually because i failed to read the Flask web server documentation that required it be run with flask run --host=0.0.0.0
, where flag --host=0.0.0.0
makes it an "Externally Visible Server" flask.palletsprojects.com/en/2.2.x/quickstart –
Trass For those of you using Centos (and perhaps other linux distibutions), you need to make sure that its FW (iptables) allows for port 80 or any other port you want.
See here on how to completely disable it (for testing purposes only!). And here for specific rules
© 2022 - 2024 — McMap. All rights reserved.