Connect to localhost:3000 from another computer | expressjs, nodejs [duplicate]

Configure your application to run on 0.0.0.0 instead of 127.0.0.0(localhost). For example:

app.listen(3000, '0.0.0.0', function() {
    console.log('Listening to port:  ' + 3000);
});

Then from another computer, connect to 192.168.1.11:3000 (or whatever your local IP address is).

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)