网上很多文章说修改iisexpress的配置文件即可,
具体文件为:
C:\Users\username\Documents\IISExpress\config下的applicationhost.config
如下增加一个IP配置
<site name="Web" id="20">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="E:\svn\Touwho3.0\sourcecode\Touhu.Web" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:60629:localhost" />
<binding protocol="http" bindingInformation="*:60629:192.168.4.58" />
</bindings>
</site>
但是发现vs2013这个是没问题的,但是vs2012不知道怎么就是不行,
后来发现打上补丁VS11-KB3002339.exe就可以了。
补充一点,启动vs2012用管理员身份运行