在配置localhost和IP都可以访问:
方法1:
applicationhost.config文件配置:
<bindings>
<binding protocol="http" bindingInformation=":1904:" />
</bindings>
方法2:
applicationhost.config文件配置:
<bindings>
<binding protocol="http" bindingInformation=":1904:locahost" />
<binding protocol="http" bindingInformation=":1904:192.168.1.22" />
</bindings>
这样配置的话