From 4055084cb5ffb1be19162241b0f65bf45dad657a Mon Sep 17 00:00:00 2001 From: Manish Date: Thu, 19 Jun 2025 17:56:46 +1000 Subject: [PATCH] explicitly listen to all IPv4 interfaces --- index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index d59986d..8e7982e 100644 --- a/index.js +++ b/index.js @@ -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}` + ); });