Skip to content

Instantly share code, notes, and snippets.

@t0yv0
Created November 8, 2011 19:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save t0yv0/1348883 to your computer and use it in GitHub Desktop.
Save t0yv0/1348883 to your computer and use it in GitHub Desktop.
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain',
'Connection': 'keep-alive'});
res.end('Hello World\n');
}).listen(8080, "192.168.56.1");
console.log('Server running');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment