Skip to content

Instantly share code, notes, and snippets.

@gokmen
Created August 9, 2013 10:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gokmen/6192784 to your computer and use it in GitHub Desktop.
Save gokmen/6192784 to your computer and use it in GitHub Desktop.
Simple NodeJs test script to run it correctly on Koding VMs, the point is using the default address as 0.0.0.0 instead 127.0.0.1
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(3000, '0.0.0.0');
console.log('Server running at 3000');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment