How to catch EADDRINUSE error when listening

前端 未结 0 1636
忘掉有多难
忘掉有多难 2021-02-02 16:56

My end goal is to use express on nodejs to try listening on port X ... but if port X is in use, try on port X+1 ... lather, rinse, repeat until we find an open port. I seem una

相关标签:
回答
  • 消灭零回复
提交回复
热议问题