IIS拒绝连接到本地主机和127.0.0.1

我无法连接到本地主机和http:// 127.0.0.1在我的一台机器上。 但是http://machinename起作用。

这导致Windows令牌应用程序无法发出令牌,因为它无法连接。

这在事件日志中显示:

 Request for security token failed with exception: System.ServiceModel.EndpointNotFoundException: Could not connect to http:// localhost : 32843/SecurityTokenServiceApplication/securitytoken.svc/actas. TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:32843 

我能ping到本地主机:

 Reply from ::1: time<1ms Reply from ::1: time<1ms Reply from ::1: time<1ms Reply from ::1: time<1ms 

同样适用于127.0.0.1

 Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 Reply from 127.0.0.1: bytes=32 time<1ms TTL=128 

主机文件没有改变,没有活动的条目。

发布netstat -ao | findstr LISTENING netstat -ao | findstr LISTENING命令在Powershell中我发现了这两个条目:

TCP 172.16.2.187:32843机器:0聆听4 TCP 172.16.2.187:32844机器:0聆听4

这看起来不错,并表明服务已经启动并正在运行。 另外,每个应用程序池都已启动,网站正在运行,并且可以从外部访问(请参阅我们的LAN)。

如果您需要更多信息,请在评论中提出要求,我将把它们添加到这个post中。

请帮我findconfiguration错误。 亲切的问候。

我有同样的问题,但本地主机工作,因为:: 1地址是监听以及networkingIP。 这个命令帮了我

 netsh http add iplisten 127.0.0.1 

TCP 172.16.2.187:32843机器:0聆听4 TCP 172.16.2.187:32844机器:0聆听4

您的服务仅在172.16.2.187上绑定, 172.16.2.187绑定到回送地址( 127.0.0.1::1: 127.0.0.1 。 您需要重新configurationIIS以侦听您select的回送地址(IPv4或IPv6),或者根据需要侦听所有可用地址( 0.0.0.0 )。