title: HTML5 WebSockets Only Work For Localhost
body: <p>I am having a bit of a problem with HTML5 &amp; WebSockets.</p>
  
  <p>I have put together a very simple client / server application to pass strings to each other and all works well when I am accessing the client html page via a local file path or via <a href="http://localhost" rel="nofollow">http://localhost</a>, however when I try and call it from http:// or http:// it doesn't seem to work.</p>
  
  <p>The first thing the client does is check if the browser supports Web Sockets:</p>
  
  <pre><code>if (!window.WebSocket) {
          _Status.innerHTML = "Web Sockets not support by this browser";
          return;
      }
  </code></pre>
  
  <p>When I browse to the page with the local host address window.WebSocket is true, but when I use anything else, the page works but window.WebSocket is false.</p>
  
  <p>Am I missing anything obvious? Is it an IE permissions/trust issue?</p>
  
  <p>I am using IE10 and Windows 8 Consumer Preview.</p>
  
  <p>I am out of ideas. Has anyone got any ideas?</p>