一佳一

记录像1+1一样简洁的代码

导航

.NETCORE 使用内置IIS 实现内网IP调试

Posted on 2024-07-16 15:23  一佳一  阅读(2)  评论(0编辑  收藏  举报

1.设置IIS

 2.

 

点开某一条路径,编辑配置文件

 3.添加对应IP地址的端口号

 4.添加网络映射

netsh http add urlacl url=https://192.168.0.157:44394/ user=everyone
netsh http add urlacl url=http://192.168.0.157:40880/ user=everyone

如果添加错了,可以删除

netsh http delete urlacl url=http://192.168.0.157:44394/
netsh http delete urlacl url=https://192.168.0.157:40880/