PHP WebSocket Server (Ratchit) ERR_CONNECTION_REFUSED?


I am trying to create a real time application with a JavaScript Web Socket and a PHP server (I can't use Node.JS on the server I am planning to deploy the server on). I have tried to use this quick tutorial and it works great... but only locally. I can connect to it if it is running on my computer or if I am SSHing into the remote server and running both the client and server. However when I try to connect to the remote server from the client with:

console.log('Connecting to server...');  var c = config.connection