错误提示:An attempt was made to access a socket in a way forbidden by its access permissions.
这种一般是因为启用 Hyper-V 后, Hyper-V 占用的端口范围。
查询tcp端口占用范围
netsh int ipv4 show dynamicport tcp
修改tpc端口占用范围(需要管理员权限打开)
netsh int ipv4 set dynamicport tcp start=52765 num=10000
然后重启
net stop hns
net start hns