简体   繁体   English

Websocket连接被拒绝。 WebSocket与'ws://127.0.0.1:2000 /'的连接失败:连接建立错误:net :: ERR_CONNECTION_REFUSED

[英]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.

相关问题 chrome 扩展 WebSocket 连接到“ws://localhost:9090/”失败:连接建立错误:net::ERR_CONNECTION_REFUSED - chrome extension WebSocket connection to 'ws://localhost:9090/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED WebSocket 连接到“wss://ip:8080/”失败:连接建立错误:net::ERR_CONNECTION_REFUSED - WebSocket connection to 'wss://ip:8080/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED WebSocket 连接失败:连接建立时出错:.net::ERR_CONNECTION_REFUSED - WebSocket connection failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED 失败:连接建立时出错:.net::ERR_CONNECTION_REFUSED - Failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED 网络套接字 | net::ERR_CONNECTION_REFUSED - WebSocket | net::ERR_CONNECTION_REFUSED Heroku上的WebSocket ERR_CONNECTION_REFUSED - WebSocket on Heroku ERR_CONNECTION_REFUSED 与'ws://。/'的WebSocket连接失败:连接建立错误:net :: ERR_NAME_NOT_RESOLVED - WebSocket connection to 'ws://./' failed: Error in connection establishment: net::ERR_NAME_NOT_RESOLVED 错误选项 net::ERR_CONNECTION_REFUSED - Error OPTIONS net::ERR_CONNECTION_REFUSED WebSocket 连接失败:连接建立错误 - WebSocket Connection failed: error in connection establishment JQuery 网络::ERR_CONNECTION_REFUSED - JQuery net::ERR_CONNECTION_REFUSED
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM