javascript – Can’t connect to Node.js on local host even though the 3000 port is listening
I can’t connect to Node.js app on local host 10.0.0.99 even though the 3000 port is listening. Windows firewall is not blocking it. It connects only on 12.0.0.1 IP. What can cause this?
> C:\Users\user>netstat -an | findstr 3000
TCP 0.0.0.0:3000 0.0.0.0:0 LISTENING
Node.js is set to bind to all IPs.
Node.js
app.listen(3000, '0.0.0.0', () => {
console.log('Development web server started!');
});
Log
PS C:\Users\user\Project\app> npm run dev
> mainweb-app@1.0.0 dev
> nodemon main.js
[nodemon] 2.0.19
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node main.js`
Development web server started!
Read more here: Source link
