From 3ce5e6fe5e646c6f768097028eac239574ea1e53 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 22 Apr 2011 16:01:34 -0700 Subject: [PATCH] Use better ports on the home page --- doc/index.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/index.html b/doc/index.html index 5770786a929..d3c6b250c5e 100644 --- a/doc/index.html +++ b/doc/index.html @@ -55,8 +55,8 @@ var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello World\n'); -}).listen(8124, "127.0.0.1"); -console.log('Server running at http://127.0.0.1:8124/'); +}).listen(1337, "127.0.0.1"); +console.log('Server running at http://127.0.0.1:1337/');

@@ -66,10 +66,10 @@ console.log('Server running at http://127.0.0.1:8124/');

 % node example.js
-Server running at http://127.0.0.1:8124/
+Server running at http://127.0.0.1:1337/

- Here is an example of a simple TCP server which listens on port 8124 + Here is an example of a simple TCP server which listens on port 1337 and echoes whatever you send it:

@@ -79,9 +79,9 @@ var net = require('net'); var server = net.createServer(function (socket) { socket.write("Echo server\r\n"); socket.pipe(socket); -}) +}); -server.listen(8124, "127.0.0.1"); +server.listen(1337, "127.0.0.1");