title: socket_bind() unable to bind address
body: <p>I'm trying to create a Web Socket Server for a small project I am working on. </p>
  
  <p>I have set up the server (located at home) and have port forwarded 80 and 22. I read this tutorial: <a href="http://net.tutsplus.com/tutorials/javascript-ajax/start-using-html5-websockets-today/" rel="nofollow">here</a></p>
  
  <p>And whenever I ssh into my server to run "startDarmon.php" I get the following error:</p>
  
  <pre><code>PHP Warning:  socket_bind(): unable to bind address [98]: Address already in use in  
  /var/www/server/socket.class.php on line 48
  2013-02-23 14:15:38 System: Socket bound to localhost:8000.
  2013-02-23 14:15:38 System: Start listening on Socket
  </code></pre>
  
  <p>This is what i think is preventing my client from connecting to the server. So in the startDarmon.php file I have:</p>
  
  <pre><code>$WebSocket = new socketWebSocket('MY_IP_NOT_LAN_IP',8000);
  </code></pre>
  
  <p>And inside my client file, I have:</p>
  
  <pre><code>var host = "ws://MY_IP_NOT_LAN:8000/server/startDaemon.php";
  </code></pre>
  
  <p>Does anyone have any suggestions to why this is not allowing me to establish a connection?</p>