Answers for "how to access node js server from another computer"

0

how to access node js server from another computer

/* 
Change the host so you're not listening on localhost(127.0.0.1)
*/
const port = 3000;
const host = '0.0.0.0';

app.listen(port, host, () => {
  console.log('Listening on port ' + port);
});
Posted by: Guest on October-03-2021

Code answers related to "how to access node js server from another computer"

Code answers related to "Javascript"

Browse Popular Code Answers by Language