I have deployed a Dockerfile config which works locally on my machine. The fly.toml looks like this:
app = "elided"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []
[env]
[[services]]
internal_port = 5000
protocol = "tcp"
[[services.ports]]
port = 5000
[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 0
timeout = "2s"
If I debug and connect to the host using flyctl ssh console
then nc localhost 5000
it works as expected. And replacing localhost with any of the hosts IP addresses from ip a
also works as expected. However connecting to the remote address at fly.dev on port 5000 does not work. It does not respond as expected. By does not work, I mean the nc connection connects, waits for a response, then closes the connection instead of immediately responding with text from the application.