我无法在我的一台机器上连接到 localhost 和 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
Run Code Online (Sandbox Code Playgroud)
我可以 ping 到本地主机:
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Run Code Online (Sandbox Code Playgroud)
同样对于 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 …
Run Code Online (Sandbox Code Playgroud)