From 58729f00d97b5b21d60fa52bc004446d2d624675 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..1774889 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}` + ); });