Hostingpid1 error

Problem description:
I’m getting an error: hostingpid1 an open port was not detected when i deploy the code

Your web server should listen to host 0.0.0.0 port 80.

2 Likes

IIRC, 80 is in use by default, typically I run on 8080 or smth.

1 Like

HTTP requests will be sent to external port 80 of your deployment. Your server must listen for traffic on 0.0.0.0

https://docs.replit.com/hosting/deployments/autoscale-deployments#starting-your-deployment

1 Like

That’s external, internally your app cannot listen on port 80 IIRC. (Heck, you can listen on almost any internal port and the Repl still function AFAIK)

2 Likes