title: Cannot get the basic socket.io example to work on client
body: <p>I installed Node on my Windows server using the .msi package that can be downloaded at the nodejs.org website, and it's running fine.  Then I ran <code>npm install socket.io</code> and that went fine, too.  It installed socket.io to <code>C:\node_modules\socket.io</code>.  I added the example server code found on the socket.io website into a new file called <code>app.js</code>.  The only change I made was the port number to 1337.  I then started Node with app.js like so:  <code>node app.js</code> into the command line, and got the <code>info: socket.io started</code> message.</p>
  
  <p>On the clientside--my OSX laptop where I'm developing my web app--I'm not sure how to properly get the <code>socket.io.js</code> file and all its dependencies so I can include it in my HTML page's <code>&lt;script&gt;</code> tag.  From the <code>How do I serve the client</code> FAQ page on the socket.io Wiki:</p>
  
  <blockquote>
    <p>The client is served automatically by the Node.JS server. In your  tag of your HTML, include:</p>
  </blockquote>
  
  <pre><code>&lt;script src="http://&lt;uri:port&gt;/socket.io/socket.io.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>So, I  added this to my index.html page:</p>
  
  <pre><code>&lt;script src="http://my.windows.server.domain.com:1337/socket.io/socket.io.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>When I upload my index.html file to my webserver, and point my browser to it, I check the console and find:</p>
  
  <pre><code>XMLHttpRequest cannot load http://localhost/socket.io/1/?t=1330983853883. Origin http://my.web.server.domain.com is not allowed by Access-Control-Allow-Origin.`
  </code></pre>
  
  <p>Has anybody encountered this message with socket.io?  Any tips as to how I can get the client to include the code it needs so I can begin using the awesomeness that socket.io is?</p>