简体   繁体   English

我可以使用服务器名称访问网站,但使用IP地址系统提示时,我需要提供用户名和密码。

[英]I can access website with server name, but with ip address system prompting i need to give username and password.

I have setup a test enviorment on server and there are few websites running on IIS. 我已经在服务器上设置了测试环境,并且在IIS上运行的网站很少。

Website security settings are set to 'integrated windows authentication' and anonymous access is unchecked. 网站安全设置设置为“集成的Windows身份验证”,并且未选中匿名访问。

When i access the website with the server name then it works fine but if i use an ip address instead then system prompting username password window. 当我使用服务器名称访问网站时,它可以正常工作,但是如果我使用IP地址代替,则系统会提示用户名密码窗口。

Why system is prompting username password window? 为什么系统提示用户名密码窗口?

How can i access a site with ip address and server name? 如何访问具有IP地址和服务器名称的站点?

Assuming that you are using Internet explorer, when there is a period in the URL it thinks that its an external address and will not pass on the credentials. 假设您使用的是Internet Explorer,则URL中存在句点时,它会认为它是外部地址,并且不会传递凭据。 So an IP address such as '10.1.1.1' will be treated as an external address, and as for an address like 'myhost' it thinks its an internal address and pass on credentials 因此,诸如“ 10.1.1.1”之类的IP地址将被视为外部地址,而对于“ myhost”之类地址,它将其视为内部地址并传递凭据

Have a look at this KB: 看看这个KB:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM