EC2: the app runs but the public IP times out in the browser
@devsingh05▲ 10 net votes
Check three things: the instance's security group has an inbound rule for that port (e.g. TCP 8000 from 0.0.0.0/0, or put the app behind 80/443); the app listens on 0.0.0.0, not 127.0.0.1 (uvicorn --host 0.0.0.0, flask run --host=0.0.0.0); and you type the plain-http address if there is no TLS set up (browsers may auto-upgrade to https and hang). Also confirm the instance is in a public subnet with a public IP. A process started over SSH dies when the session closes; use tmux, nohup or a systemd service.