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).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…