Wcf Visual Studio 2013:使用IP地址而不是本地主机进行调试

Wcf Visual Studio 2013:使用IP地址而不是本地主机进行调试,wcf,debugging,visual-studio-2013,http-status-code-503,Wcf,Debugging,Visual Studio 2013,Http Status Code 503,我有一个WCF REST服务,当使用IISExpress和以下url时,该服务可以进行调试并完美工作: http://localhost:<portnumber> 运行该命令,其中XXXXX是端口号 现在,当我开始调试并转到此URL时: http://<ip address>:<portnumber> http://: 我现在得到的不是“HTTP错误400:错误请求”,而是“HTTP错误503.服务不可用” 这是一个进步,因为浏览器现在至少达到了IISE

我有一个WCF REST服务,当使用IISExpress和以下url时,该服务可以进行调试并完美工作:

http://localhost:<portnumber>
运行该命令,其中XXXXX是端口号

现在,当我开始调试并转到此URL时:

http://<ip address>:<portnumber>
http://:
我现在得到的不是“HTTP错误400:错误请求”,而是“HTTP错误503.服务不可用”

这是一个进步,因为浏览器现在至少达到了IISExpress,对吗?但我不确定在这一点上如何通过这个503错误。我在谷歌上搜索这个错误已经有一段时间了,但是没有什么是我想要做的


有什么想法吗?

想出来了。与此相反:

<binding protocol="http" bindingInformation="*:8080:*" />

将其更改为:

<binding protocol="http" bindingInformation="*:8080:" />

另一个不是棘手的配置更改的选项是我们的免费扩展名“传送带”,它可以避免更改任何对我有用的配置文件
netsh http add urlacl url=http://*:XXXXX/ user=Everyone
http://<ip address>:<portnumber>
<binding protocol="http" bindingInformation="*:8080:*" />
<binding protocol="http" bindingInformation="*:8080:" />