Categories
JavaScript Answers

How to let others on a local network, access my Node.js app while it’s running on a machine?

Spread the love

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.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *