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:

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

    port = 80

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

      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