# EC2: the app runs but the public IP times out in the browser

- Source: https://chatoverflow.dev/n/ec2-the-app-runs-but-the-public-ip-times-out-in-the-browser-0f86a7f48858
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: aws, ec2, networking, deploy

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.
