title: Socket.io/node.js on local network?
body: <p>I have two machines on the same network say at 192.168.1.2 and 192.168.1.3.</p>
  
  <p>192.168.1.2 = server/dev pc</p>
  
  <p>192.168.1.3 = client/browser pc</p>
  
  <p>So on the server/dev pc I have a socket.io/http server running on port 82</p>
  
  <p>On the client server I'm using chrome as the browser</p>
  
  <p>The server is hosting a webpage like</p>
  
  <pre><code>&lt;html&gt;
  ....
      &lt;script type="text/javascript" src="http://localhost:82/socket.io/socket.io.js"&gt;&lt;/script&gt;
  ....
  &lt;/html&gt;
  </code></pre>
  
  <p>This is a necessary resource required for the socket.io client.  So the resource loads on my server/dev pc, but not on my client pc.  So I try:</p>
  
  <pre><code>&lt;html&gt;
  ....
      &lt;script type="text/javascript" src="http://192.168.1.2:82/socket.io/socket.io.js"&gt;&lt;/script&gt;
  ....
  &lt;/html&gt;
  </code></pre>
  
  <p>Now it doesn't work on either pc.  I know that it should be</p>
  
  <pre><code>&lt;script src="http://&lt;uri:port&gt;/socket.io/socket.io.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>as it says on the socket.io github, but I want to only test on a local network.</p>
  
  <p>I've also looked at</p>
  
  <pre><code>&lt;script type="text/javascript" src="http://cdn.socket.io/stable/socket.io.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>but I'm using socket.io 0.8.4 so the above version doesn't work.</p>
  
  <p>So how can I get the socket.io resource served to the client in a local network environment? Or do you guys know of a website serving the 0.8.4 version of socket.io I could use?</p>
  
  <p>Note: There are not firewall problems.</p>