Connection Refused/ Connection Timeout
Hi, I have used sockets from this tutorial: https://github.com/kishor10d/CodeIgniter-Ratchet-Websocket

Everything is working fine on localhost, But when i uploaded files on server it gave error. I was told that port which is 2000 might be blocked I contacted support they told me it is now open and now, firewall is also not blocking the port. 

I was told by hosting support to use 127.0.0.1 instead of domain name or server ip.

i am getting this error : **WebSocket connection to 'ws://127.0.0.1:2000/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED**

if I change ip to Server IP or Doamin Name i get: **failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT**