[英]Websocket connection refused. WebSocket connection to 'ws://127.0.0.1:2000/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
I have used websocket: https://github.com/kishor10d/CodeIgniter-Ratchet-Websocket 我用过websocket: https : //github.com/kishor10d/CodeIgniter-Ratchet-Websocket
I have implemented websocket on a site. 我已经在网站上实现了websocket。 It is working great on localhost but when I uploaded files, it doesn't work.
它在localhost上运行良好,但是当我上传文件时,它不起作用。 First there was confusion regarding the port I am using which is 2000. Now after contacting Inmotion's support they told me that 2000 is live and there are no firewall issues.
首先,我使用的端口号是2000,对此感到困惑。现在,在联系Inmotion的支持人员之后,他们告诉我2000端口已经存在,并且没有防火墙问题。 But I get this error when I reload the page:
但是在重新加载页面时出现此错误:
WebSocket connection to 'ws://127.0.0.1:2000/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
According to their support there is no service listing to this port. 根据他们的支持,此端口没有服务列表。
I have used CodeIgniter, Javascript 我用过CodeIgniter,Javascript
如果您是从客户端应用程序调用本地主机(127.0.0.1),则是在调用自己的计算机,一旦后端在远程服务器上运行,就必须使用服务器的域名或IP地址-我是d假设您的Web /服务器托管服务(Inmotion)为您分配了后者。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.