localhost vs 0.0.0.0
Binding to localhost accepts connections only from the same machine or container.
Last updated November 25, 2026
The short version
Binding to localhost accepts connections only from the same machine or container. Binding to 0.0.0.0 accepts them on every network interface. Inside a container, traffic arrives from outside, so an app bound to localhost looks healthy in its logs yet never receives a request. This is among the most common deploy problems.
On Reverhost
Reverhost sets PORT=3000 and HOSTNAME=0.0.0.0, but most servers need 0.0.0.0 passed to listen explicitly. Learn more.
Start for free
Install the skill, choose Global or Local, then tell your agent to deploy. No credit card, no config files.
$npx ezhst skill install