命令提示符(管理员权限)需要添加的代码:
netsh http add urlacl url=http://192.168.1.103:12000/ user=Everyone listen=yes
其中:url:代码中的url;user:Everyone;
Everyone
查看操作系统中已经存在的保留项:netsh http show urlacl
删除操作系统中已存在的保留项:netsh http delete urlacl url=http://+:12000/
netsh http add urlacl url=http://192.168.1.103:9437/ user=Everyone listen=yes