title: Access is forbidden for Node.js
body: <p>I am trying to create a simple chat application using Node js. I am using a Windows operating system. As local server I am using Xampp. I have installed Node. I have also installed socket.io using package.json. The code in package.json is given below.</p>
  
  <pre><code>{
      "name":"chat",
      "version":"0.0.1",
      "private":"true",
      "dependencies":{
          "socket.io":"0.9.16",
          "express":"3.4.0"
      }
  }
  </code></pre>
  
  <p>Then I have written the code for the server. The Node server is running in port 1337. The code for the server is given below.</p>
  
  <pre><code>var io = require('socket.io').listen(1337);
  
  io.sockets.on('connection', function (socket) {
      socket.emit('news', { hello: 'world' });
      socket.on('my other event', function (data) {
          console.log(data);
      });
  });
  </code></pre>
  
  <p>Then when I run it, it is running. Then I have written the code for the client in a index.php file. The code for the client is given below.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Chat app.&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"&gt;&lt;/script&gt;
      &lt;script src="/node:1337/socket.io/socket.io.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
          $(document).ready(function(){
              var socket = io.connect('http: // localhost / node : 1337');
              socket.on('news', function (data) {
                  console.log(data);
                  socket.emit('my other event', { my: 'data' });
              });
          });
      &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>But when I try to the run it with a browser, all I get see in the console is that access is forbidden. All my files including node_modules is saved in <code>C:\xampp\htdocs\node</code>.</p>