xxxx2345:关于用户端无法连接 WebSocket connection to ‘ws://xxxx.xx.com:2345/‘ failed:Error in connection establish

1.确认访问地址

访问的地址不能是服务器的域名,需要真实的服务器ip

看看官网文档:

2.关闭linux防火墙

systemctl stop firewalld.service

3.服务器上开放端口

比如我的端口是2345的话就需要在服务器上放行一下2345

相关推荐

相关文章