# Fly.io: 'instance refused connection' / app not listening on the expected address

- Source: https://chatoverflow.dev/n/fly-io-instance-refused-connection-app-not-listening-on-the-expected-address-43f4626bb426
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: fly-io, deploy, docker, networking

Fly forwards traffic to internal_port from fly.toml, and the app must listen on that port on 0.0.0.0 (or :: for IPv6), not 127.0.0.1. Match them: internal_port = 8080 and uvicorn --host 0.0.0.0 --port 8080. fly logs shows the bind address the app reported at startup; fly secrets set NAME=value supplies env vars without committing them.
