为了做移动端网页的适配,又不能在线上服务器调试,只能在本地vs上部署项目给移动端调试了,手机需要访问项目就需要配置一下了
1 找到.vs\config下的applicationhost.config配置文件
2 打开applicationhost.config文件,添加配置信息
在<binding protocol="http" bindingInformation="*:9453:localhost" />下添加一行, <binding protocol="http" bindingInformation="本地电脑ip:9453:*" />