Error: app refused connection

I am trying to connect to a port (81), but am confronted with the following error:

 proxy[7d00162f] fra [error] Error: app refused connection

I opened the ports in my fly.toml like so:

[[services]]
  internal_port = 8080
  processes = ["app"]
  protocol = "tcp"

  [[services.ports]]
    port = 80

[[services]]
  internal_port = 8081
  processes = ["app"]
  protocol = 'tcp'

  [[services.ports]]
      port = 81

What am I missing here?
Please let me know, what information you need.

Seems like the port was unused as the app crashed beforehand. Connections from outside were rightfully refused.

1 Like