explicitly listen to all IPv4 interfaces

This commit is contained in:
Manish 2025-06-19 17:56:46 +10:00
parent d42811f152
commit 4055084cb5

View File

@ -193,6 +193,10 @@ app.get("/api/users/:_id/logs", (req, res) => {
});
});
const listener = app.listen(PORT, () => {
console.log("Your app is listening on port " + listener.address().port);
const listener = app.listen(PORT, "0.0.0.0" () => {
console.log(
`Your app is listening on interface ${
listener.address().address
} and port ${listener.address().port}`
);
});