Error: listen EADDRNOTAVAIL: address not available

1 개요[ | ]

Error: listen EADDRNOTAVAIL: address not available

2 vite 사례[ | ]

Console
Copy
  vite v2.9.1 dev server running at:

  > Local:    http://localhost:3000/
  > Network:  http://135.79.246.80:3000/

  ready in 322ms.

WebSocket server error:
Error: listen EADDRNOTAVAIL: address not available 180.246.91.35:80
    at Server.setupListenHandle [as _listen2] (net.js:1314:21)
    at listenInCluster (net.js:1379:12)
    at GetAddrInfoReqWrap.doListen [as callback] (net.js:1516:7)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:73:8)
JavaScript
Copy
// vite.config.js
export default defineConfig({
  ...
  server: {
    hmr: {
      protocol: 'ws',
      host: 'hello.example.com',
      // port: 80,
      clientPort: 80,
    },
  },
  ...
}

3 같이 보기[ | ]