title: PHP Websocket on Webserver
body: <p>A few days ago I setup this WebSocket server from <a href="http://code.google.com/p/phpwebsocket/" rel="nofollow">http://code.google.com/p/phpwebsocket/</a></p>
  
  <p>It works excellent on my localhost by using Xampp. Then, I uploaded it to my webspace on Strato, but now I am not able to connect to the server.</p>
  
  <p>I changed the the sockets connection to my domain but it didn`t work</p>
  
  <p>Client.html:</p>
  
  <pre><code>var host = "ws://xxxxxxxx.com:12345/Websocket/server.php";
  </code></pre>
  
  <p>Server.php:</p>
  
  <pre><code>$master  = WebSocket("xxxxxx",12345);
  </code></pre>
  
  <p>I already tried it with different port(80,443,12345,8080,8000....), using the IP address in server.php instead of the domain.</p>
  
  <p>I also used absolute and relative paths in the client.html.</p>
  
  <p>From the projects page <a href="http://code.google.com/p/phpwebsocket/" rel="nofollow">http://code.google.com/p/phpwebsocket/</a> someone suggested to use 0 or 0.0.0.0 in the server.php, but that didn`t work either.</p>
  
  <p>In the client.html it just shows:</p>
  
  <p>WebSocket - status 0
  Disconnected - status 3</p>
  
  <p>My guess that the problem is that Strato is blocks me from using WebSockets.
  Is it possible to run WebSockets on my webspace?</p>