爲了做移動端網頁的適配,又不能在線上服務器調試,只能在本地vs上部署項目給移動端調試了,手機需要訪問項目就需要配置一下了
1 找到.vs\config下的applicationhost.config配置文件
2 打開applicationhost.config文件,添加配置信息
在<binding protocol="http" bindingInformation="*:9453:localhost" />下添加一行, <binding protocol="http" bindingInformation="本地電腦ip:9453:*" />