https://github.com/soorajshankar/logScreen/blob/f8b29aaef428...
So this will be sharing your logs with the world if you run this outside of a trusted network. (And personally I avoid trusting any networks)
https://github.com/soorajshankar/logScreen/blob/f8b29aaef428...
So this will be sharing your logs with the world if you run this outside of a trusted network. (And personally I avoid trusting any networks)
Instead http://expressjs.com/en/4x/api.html#app.listen sends you to https://nodejs.org/api/http.html#http_server_listen which also won't give the answer but sends you to https://nodejs.org/api/net.html#serverlisten which at some points finally documents that default is 0.0.0.0.
Welcome to the JavaScript ecosystem :/
> app.listen([port[, host[, backlog]]][, callback])
You literally just have to run:
app.listen(3000, '127.0.0.1')
If you don't trust the network you're on you should just be explicit about which IP address you'd like to listen on.Or I can even make a flag to configure this :thinking
Typically, services allow you set the host address by configuration. This way you can set it to `127.0.0.1` so that it is only available locally.
[0]: https://nodejs.org/api/net.html#serverlistenport-host-backlo...