To listen all interfaces instead of localhost only with Node Express app server, we call listen
with '0.0.0.0'
.
For instance, we write
const express = require("express");
const app = express();
app.listen(3000, "0.0.0.0");
to call app.listen
with "0.0.0.0"
to listen for all interfaces at port 3000.