WebSocket connection to 'ws://192.168.43.58:8080/ws' failed
时间: 2023-09-27 16:08:03 浏览: 213
WebSocket连接到'ws://192.168.43.58:8080/ws'失败的原因是服务器无法检测到公网IP,而是直接使用了局域网的IP。这导致WebSocket的域名是内网IP,从而导致WebSocket通信失败。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [(解决)WebSocketClient.js?5586:16 WebSocket connection to ‘ws://10.51.171.219:8080/(解决)](https://blog.csdn.net/qq_48968669/article/details/126742277)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [vue-cli解决IE浏览器chunk-vendors.js 提示sockjs-client错误](https://blog.csdn.net/weixin_43778272/article/details/126460298)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文