在项目sln目录下有一个隐藏文件夹.vsconfigapplicationhost.config
<bindings>
<binding protocol="http" bindingInformation="*:51099:localhost" />
<binding protocol="http" bindingInformation="*:51099:192.168.0.66" /> <!--多加这一行-->
</bindings>
管理员身份运行vs