当前位置: 动力学知识库 > 问答 > 编程问答 >

asp.net - Windows authentication sucess while accessing using IP, but issue while accessing by computername

问题描述:

My issue is the title itself.

I am using IIS 7 and hosted an MVC 4 website which uses Windows Authentication (Windows Domain) for authenticating users.

I can access the site from browser

using localhost ( from the server itself with admin previleaged user)

using IP

I need to access the site using the computer name

My url will be http://machinename.fullyQualifiedDomainname/AppFolderName

But while trying to access using the above url, I am getting a Login box and I entered a valid

user ID and Password, but it says that you are not authorized to access.

I tried using the IP, I am getting the Login Box , I tried using the same userID and password. Then i can browse the website.

I don't think its not an issue with DNS , because while giving the ComputerName, it identifies the server and prompting me with a login box. But it fails to validate the user

after that.

Whether my observation is correct ?

Do I need to add any thing for achieving this ?

网友答案:

1) Try ping machinename.fullyQualifiedDomainname to make sure it returns the correct IP first.

if the IP is correct, then

2) Check your IIS entry. To make sure machinename.fullyQualifiedDomainname is the IIS Binding.

分享给朋友:
您可能感兴趣的文章:
随机阅读: