Answer the question
In order to leave comments, you need to log in
How to run Node js on VPS?
Tell me how to run node.js server on VDS.
On the local everything is simple according to the instructions
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(3030 );
console.log('Server running on port 3030.');
Answer the question
In order to leave comments, you need to log in
This was not the problem here, but for the future - many services listen only to the local interface by default.
Check in Linux - "netstat -nlp", in FreeBSD - "sockstat -4l".
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question