Connect to localhost:3000 from another computer (nodejs)
![](https://resources.blogblog.com/img/icon18_edit_allbkg.gif)
https://hocdelamduocviec.blogspot.com/2022/04/connect-to-localhost3000-from-another.html
Method 1:
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).
https://stackoverflow.com/a/30712750