Connect to localhost:3000 from another computer (nodejs)

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

Method 2:

Related

Web 4858416587964050270

Post a Comment

emo-but-icon

Follow Us

Hot in week

Recent

Comments

Side Ads

Text Widget

Connect Us

item