win10/win7下vs2013自带IISExpress支持局域网访问

打开IISExpress安装目录(C:\Users\Administrator\Documents\IISExpress\config),一般为我的文档下,用记事本打开applicationhost.config文件,找到:
<bindings>
    <binding protocol="http" bindingInformation="*:58975:localhost" />
</bindings>

在binding下边添加一行,如:

<bindings>
    <binding protocol="http" bindingInformation="*:19818:localhost" />
    <binding protocol="http" bindingInformation="*:19818:202.196.187.123" /><!-- 加入此行 -->
</bindings>
添加完后保存,然后重启iisexpress,按照上述步骤,在win7操作系统下已经可以正常访问,但是经测试win10下居然没有反应,后翻阅资料才发现(懂得太少),需要运行下边的语句:
打开运行窗口,输入CMD,enter,然后执行下边的命令即可。
netsh http add urlacl url=http://202.196.187.123:58975/ user=everyone 

上述202.196.187.123为本机ip地址,请根据自己的电脑进行修改。

有问题可以联系我,我的邮箱是:yxxrui@163.com,我的网址是:http://www.yxxrui.cn

转载于:https://www.cnblogs.com/yxxrui/p/6025769.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值