From 38dbf84775beef81a959c891412f4c0989f8305f Mon Sep 17 00:00:00 2001 From: Manish Date: Thu, 19 Jun 2025 20:26:31 +1000 Subject: [PATCH] explicitly listen to all IPv4 interfaces --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 0790c9c..75af835 100644 --- a/index.js +++ b/index.js @@ -148,6 +148,6 @@ app.get("/api/shorturl/:shorturl", (req, res) => { ); }); -app.listen(port, function () { - console.log(`Listening on port ${port}`); +app.listen(port, "0.0.0.0", function () { + console.log(`Listening on interface "0.0.0.0" and port ${port}`); });