i am trying to setup a web server using nodejs. The following code below is directly from the nodejs.org website just configured with my server credentials.
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(5000, '10.0.1.51');
console.log('Server running at http://10.0.1.51:5000/');
but when i go to 10.0.1.51:5000 nothing is found i don't even get an error in my console.
also the book i am learning from provided me with this
var connect = require('connect');
connect.createServer(
connect.static("../angularjs")
).listen(5000);
and that still doesn't work. I'm not sure on where to look to resolve this issue, thanks.