Node.js server.address().address returns ::

前端 未结 2 1129
攒了一身酷
攒了一身酷 2021-02-05 02:18

If I remember correctly it used to display \"localhost\" a few days ago. I am not sure what had changed that made server.address().address return double colons (::) instead. I r

2条回答
  •  天命终不由人
    2021-02-05 02:44

    The reason why its choosing IPV6 address is possibly because some other process is using IPV4 port no 3456. This happens sometimes due to automatic updates where new processes are installed.

提交回复
热议问题