报错信息: sockjs.js?9be2:1609 GET http://192.168.1.10:8080/sockjs-node/info?t=1625369058433 net::ERR_CONNECTION_TIMED_OUT

vue项目本地开发,所以不存在网络防火墙问题,因此考虑可能是本地IP变更造成的

内容

查看本机IP

浏览器——net::ERR_CONNECTION_TIMED_OUT

查看服务运行IP

浏览器——net::ERR_CONNECTION_TIMED_OUT

解决方法

重新运行服务(推荐)

浏览器——net::ERR_CONNECTION_TIMED_OUT

配置devServer

module.exports = {
  devServer: {
      host: '127.0.0.1'
   }

固定本机IP

浏览器——net::ERR_CONNECTION_TIMED_OUT

相关文章:

  • 2022-12-23
  • 2021-11-23
  • 2021-08-11
  • 2021-10-09
  • 2021-11-22
  • 2021-09-04
  • 2021-07-22
猜你喜欢
  • 2021-08-02
  • 2021-06-14
  • 2021-07-02
  • 2021-12-12
  • 2022-12-23
  • 2022-03-05
  • 2022-12-23
相关资源
相似解决方案