From 139c8832aa75c4582b9ebdce76ed2d709ad02513 Mon Sep 17 00:00:00 2001 From: Manish Date: Thu, 19 Jun 2025 17:27:45 +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 c0eb1d4..44a333d 100644 --- a/index.js +++ b/index.js @@ -42,6 +42,10 @@ app.get("/api/:date?", (req, res) => { }); // listen for requests :) -var listener = app.listen(PORT, function () { - console.log("Your app is listening on port " + listener.address().port); +var listener = app.listen(PORT, "0.0.0.0", function () { + console.log( + `Your app is listening on interface ${ + listener.address().address + } and port ${listener.address().port}` + ); });