Skip to content

Request fails to load when accessing req.ip when using docker #347

@AndeYashwanth

Description

@AndeYashwanth
export const app = new HyperExpress.Server({
    max_body_length: 1 * 1024 * 1024
});
app.get("/", (req, res) => {
    console.log(req.ip)
    res.send("OK!");
});
app.listen(3000, () => {
    console.log(`Server running on 3000`);
});

Deployed as node:22 app in docker and opened http://localhost:3000/ which gives below error in browser. No error in docker logs. Works fine without docker.

Hmmm… can't reach this page
The connection was reset.
Try:

Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_RESET

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions