I was looking into using Koyeb to deploy a discord bot, and it seems to fail the health check. I incorporated a TCP echo server (on 127.0.0.1:8000) so that it should pass the check, and it seems to work when I run it locally, but still seems to fail the koyeb health check.
Your bot should listen on 0.0.0.0:8000 and it will work.
When you are listening on localhost(127.0.0.1) we cannot connect to it. It’s accesible only from inside of your instance.
How can I make my buildpack builder to spin up the application listening through 0.0.0.0:8000? I have a remix/node app and apparently exposes the instance in localhost.
0.0.0.0 means “listen on all available IPs”. If your app prints “[remix-serve] http://localhost:8000 (http://10.2.1.179:8000)” It should be ok, it listens on IP 10.2.1.179