node app listen change ip 1

node app listen change ip

app.listen(8888, '192.168.0.101');

Here is what the above code is Doing:
1. We’re importing the express module and assigning it to the variable express.
2. We’re creating a new express application and assigning it to the variable app.
3. We’re telling the app to listen for connections on port 8888.
4. We’re telling the app to listen for connections on the IP address 192.168.0.101.

Similar Posts