To let others on a local network, access my Node.js app while it’s running on a machine, we call listen
with the IP address of the computer
For instance, we write
server.listen(3000, "192.168.0.3");
to call listen
with the IP address of the computer that the server is running on to allow external connections on port 3000.