node-red: bind [127.0.0.1]:1880: Permission denied channel_setup_fwd_listener_tcpip: cannot listen to port: 1880

node-red 连接的时候显示:

bind [127.0.0.1]:1880: Permission denied

channel_setup_fwd_listener_tcpip: cannot listen to port: 1880

在做作业的时候需要连接到aws上instance的node-red,但是ssh上去的时候发现访问localhost:1880始终有错误

netstat -ano|findstr  "1880"   也未发现端口被占用

找了很久,最后在TA的帮助下发现问题,是因为之前做另外一门作业的时候需要开启电脑的hyper-v的功能,通过指令发现其占用了一些端口

netsh interface ipv4 show excludedportrange protocol=tcp

因此只需要关闭电脑的hyper-v功能即可

控制面板 –> 程序和功能 –> 启动或关闭 Windows 功能 –> 取消勾选 Hyper-V

参考的链接:

https://stackoverflow.com/questions/59264538/listening-to-port-1880-fails-on-windows

https://vensing.com/win10-hyperv-dynamicport/

原文地址:https://www.cnblogs.com/1228073191Blog/p/13941120.html