473,409 Members | 1,952 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,409 software developers and data experts.

HTTP 401.1 error when using IP address...

Our IT team relocated our application servers yesterday. They had to take
one machine out of the cluster because it would prompt users for credentials
if accessed using the IP address, which I guess is what happens when it is
accessed through the firewall. However, it works as expected when I use the
machine name in place of the IP address.

To summarize, the application servers were moved to a new hosting site and
one machine is behaving badly. Here are the scenarios:

If I access www.myfqdn.com from the internet and I happen to hit the server
that is misbehaving, I am presented with a windows logon prompt.

If I access http://machinename/myapp/mypage.aspx, then it works as expected.

If I access http://machineip/myapp/mypage.aspx, then I am presented with a
windows logon prompt.
Any clues or suggestions of where to ask this question would be greatly
appreciated.

Of course, cancelling the windows logon prompt results in the 401.1 error.

Carl
Oct 11 '07 #1
8 3999
msnews.microsoft.com wrote:
Our IT team relocated our application servers yesterday. They had to
take one machine out of the cluster because it would prompt users for
credentials if accessed using the IP address, which I guess is what
happens when it is accessed through the firewall. However, it works
as expected when I use the machine name in place of the IP address.

To summarize, the application servers were moved to a new hosting
site and one machine is behaving badly. Here are the scenarios:

If I access www.myfqdn.com from the internet and I happen to hit the
server that is misbehaving, I am presented with a windows logon
prompt.

If I access http://machinename/myapp/mypage.aspx, then it works as
expected.

If I access http://machineip/myapp/mypage.aspx, then I am presented
with a windows logon prompt.
Any clues or suggestions of where to ask this question would be
greatly appreciated.

Of course, cancelling the windows logon prompt results in the 401.1
error.
You'll probably get more help for this in the iis group. Given that you
are talking about .aspx pages, this group which is a classic ASP group,
is not relevant.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Oct 11 '07 #2
"msnews.microsoft.com" <vagabondsw-X-@-X-gmail.comwrote in message
news:uP*************@TK2MSFTNGP04.phx.gbl...
Our IT team relocated our application servers yesterday. They had to take
one machine out of the cluster because it would prompt users for
credentials
if accessed using the IP address, which I guess is what happens when it is
accessed through the firewall. However, it works as expected when I use
the
machine name in place of the IP address.

To summarize, the application servers were moved to a new hosting site and
one machine is behaving badly. Here are the scenarios:

If I access www.myfqdn.com from the internet and I happen to hit the
server
that is misbehaving, I am presented with a windows logon prompt.

If I access http://machinename/myapp/mypage.aspx, then it works as
expected.
>
If I access http://machineip/myapp/mypage.aspx, then I am presented with a
windows logon prompt.
Any clues or suggestions of where to ask this question would be greatly
appreciated.

Of course, cancelling the windows logon prompt results in the 401.1 error.
When using:-

http://machinename/myapp/mypage.aspx

You'll notice that the zone applied is Local Intranet. Which be default
will attempt to authorize using the current users credentials.

In the other cases the zone will be internet, which doesn't do this.

Add www.myfqdn.com to the list of domains recognised as local intranet (do
this via internet options in IE).

You can do the same for the IP but I would recommend that you simple don't
access the site using an IP anyway.
--
Anthony Jones - MVP ASP/ASP.NET
Oct 11 '07 #3
"msnews.microsoft.com" <vagabondsw-X-@-X-gmail.comwrote in message
news:uP*************@TK2MSFTNGP04.phx.gbl...
Our IT team relocated our application servers yesterday. They had to take
one machine out of the cluster because it would prompt users for
credentials if accessed using the IP address, which I guess is what
happens when it is accessed through the firewall. However, it works as
expected when I use the machine name in place of the IP address.

To summarize, the application servers were moved to a new hosting site and
one machine is behaving badly. Here are the scenarios:

If I access www.myfqdn.com from the internet and I happen to hit the
server that is misbehaving, I am presented with a windows logon prompt.

If I access http://machinename/myapp/mypage.aspx, then it works as
expected.

If I access http://machineip/myapp/mypage.aspx, then I am presented with a
windows logon prompt.
Any clues or suggestions of where to ask this question would be greatly
appreciated.

Of course, cancelling the windows logon prompt results in the 401.1 error.

Carl
Thank you both for your responses. I will check the IIS group.

Carl
Oct 11 '07 #4
If you put in your credentials at the prompt does it work or does it just
fail 3 times and you get the 401?

If it works then you just need to modify your IE settings so it
automatically logs on to sites that are not in the "intranet" zone. If the
web site is in another zone Internet, Trusted Sites etc then it will pop up
the login prompt everytime. (Why it does that with trusted sites I'm not
sure).

To change this follow these steps:
1. open up IE go to Tools->Internet Options->Security Tab
2. Select the zone that the web site/server is showing up in (or add it to
trusted sites first so you only modify that zone since doing this on the
Internet zone can be a security risk)
3. Click "Custom Level"
4. Go to the very last item in the list "User Authentication->Logon"
5. Click the "Automatic logon with current user name and password".
6. Click OK

That should get it working for you.

If it doesn't work let me know and I'll see what I can figure out for you.

-------------------------------------
Chris Alton, Microsoft Corp.
SQL Server Developer Support Engineer
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: "msnews.microsoft.com" <vagabondsw-X-@-X-gmail.com>
Subject: HTTP 401.1 error when using IP address...
Date: Thu, 11 Oct 2007 10:02:05 -0400

Our IT team relocated our application servers yesterday. They had to
take
one machine out of the cluster because it would prompt users for
credentials
if accessed using the IP address, which I guess is what happens when it
is
accessed through the firewall. However, it works as expected when I use
the
machine name in place of the IP address.

To summarize, the application servers were moved to a new hosting site
and
one machine is behaving badly. Here are the scenarios:

If I access www.myfqdn.com from the internet and I happen to hit the
server
that is misbehaving, I am presented with a windows logon prompt.

If I access http://machinename/myapp/mypage.aspx, then it works as
expected.
>
If I access http://machineip/myapp/mypage.aspx, then I am presented with
a
windows logon prompt.
Any clues or suggestions of where to ask this question would be greatly
appreciated.

Of course, cancelling the windows logon prompt results in the 401.1 error.

Carl
Oct 11 '07 #5
Thanks Chris.

This is actually a publicly available website, such as microsoft.com. There
should be no authentication for anonymous users. We have three application
servers in the cluster. Two are working fine and the third is presenting
this logon prompt. Anthony Jones was correct in that accessing the machine
by name would use the "Local Intranet" zone to pass domain credentials to
the box.

Again, this is not an Intranet site. We are talking about a public Internet
website here. Any suggestions would be greatly appreciated.

I've also just found out that the machine was renamed during the move! It
was a subtle change. A dash ("-") was removed from the machine name. The
application servers were and remain joined to the domain.

Regards,

Carl

"Chris Alton [MSFT]" <ca****@online.microsoft.comwrote in message
news:dw**************@TK2MSFTNGHUB02.phx.gbl...
If you put in your credentials at the prompt does it work or does it just
fail 3 times and you get the 401?

If it works then you just need to modify your IE settings so it
automatically logs on to sites that are not in the "intranet" zone. If the
web site is in another zone Internet, Trusted Sites etc then it will pop
up
the login prompt everytime. (Why it does that with trusted sites I'm not
sure).

To change this follow these steps:
1. open up IE go to Tools->Internet Options->Security Tab
2. Select the zone that the web site/server is showing up in (or add it to
trusted sites first so you only modify that zone since doing this on the
Internet zone can be a security risk)
3. Click "Custom Level"
4. Go to the very last item in the list "User Authentication->Logon"
5. Click the "Automatic logon with current user name and password".
6. Click OK

That should get it working for you.

If it doesn't work let me know and I'll see what I can figure out for you.

-------------------------------------
Chris Alton, Microsoft Corp.
SQL Server Developer Support Engineer
This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
>From: "msnews.microsoft.com" <vagabondsw-X-@-X-gmail.com>
Subject: HTTP 401.1 error when using IP address...
Date: Thu, 11 Oct 2007 10:02:05 -0400

Our IT team relocated our application servers yesterday. They had to
take
>one machine out of the cluster because it would prompt users for
credentials
>if accessed using the IP address, which I guess is what happens when it
is
>accessed through the firewall. However, it works as expected when I use
the
>machine name in place of the IP address.

To summarize, the application servers were moved to a new hosting site
and
>one machine is behaving badly. Here are the scenarios:

If I access www.myfqdn.com from the internet and I happen to hit the
server
>that is misbehaving, I am presented with a windows logon prompt.

If I access http://machinename/myapp/mypage.aspx, then it works as
expected.
>>
If I access http://machineip/myapp/mypage.aspx, then I am presented with
a
>windows logon prompt.
Any clues or suggestions of where to ask this question would be greatly
appreciated.

Of course, cancelling the windows logon prompt results in the 401.1
error.

Carl

Oct 11 '07 #6

"Vagabond Software" <vagabondsw-X-@-X-gmail.comwrote in message
news:eF**************@TK2MSFTNGP03.phx.gbl...
Thanks Chris.

This is actually a publicly available website, such as microsoft.com.
There
should be no authentication for anonymous users. We have three
application
servers in the cluster. Two are working fine and the third is presenting
this logon prompt. Anthony Jones was correct in that accessing the
machine
by name would use the "Local Intranet" zone to pass domain credentials to
the box.

Again, this is not an Intranet site. We are talking about a public
Internet
website here. Any suggestions would be greatly appreciated.

I've also just found out that the machine was renamed during the move! It
was a subtle change. A dash ("-") was removed from the machine name. The
application servers were and remain joined to the domain.
Your IUSR_<machinenameaccount needs to have access to the files you wish
to serve. In the process of the move this has been damaged. Perhaps someone
has attempted to rename this user account.
--
Anthony Jones - MVP ASP/ASP.NET
Oct 11 '07 #7
Thanks Anthony. That was exactly the problem. Everything appears to be
working now.

Thanks all for your help.

Regards,

Carl

"Anthony Jones" <An*@yadayadayada.comwrote in message
news:uL**************@TK2MSFTNGP04.phx.gbl...
>
"Vagabond Software" <vagabondsw-X-@-X-gmail.comwrote in message
news:eF**************@TK2MSFTNGP03.phx.gbl...
>Thanks Chris.

This is actually a publicly available website, such as microsoft.com.
There
>should be no authentication for anonymous users. We have three
application
>servers in the cluster. Two are working fine and the third is presenting
this logon prompt. Anthony Jones was correct in that accessing the
machine
>by name would use the "Local Intranet" zone to pass domain credentials to
the box.

Again, this is not an Intranet site. We are talking about a public
Internet
>website here. Any suggestions would be greatly appreciated.

I've also just found out that the machine was renamed during the move!
It
was a subtle change. A dash ("-") was removed from the machine name.
The
application servers were and remain joined to the domain.

Your IUSR_<machinenameaccount needs to have access to the files you wish
to serve. In the process of the move this has been damaged. Perhaps
someone
has attempted to rename this user account.
--
Anthony Jones - MVP ASP/ASP.NET


Oct 11 '07 #8
The main reason I believed it was an Authentication issue was the 401.1
usually file based issues like your issue with the IUSR_Machine account
spit out a 401.3 error not a 401.1.

401.3 is access denied due to ACL on resource whereas 401.1 is logon failed.

Glad we did get it sorted out though and good luck.
-------------------------------------
Chris Alton, Microsoft Corp.
SQL Server Developer Support Engineer
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: "msnews.microsoft.com" <vagabondsw-X-@-X-gmail.com>
References: <uP*************@TK2MSFTNGP04.phx.gbl>
Subject: Re: HTTP 401.1 error when using IP address...
Date: Thu, 11 Oct 2007 11:05:36 -0400
Lines: 32

"msnews.microsoft.com" <vagabondsw-X-@-X-gmail.comwrote in message
news:uP*************@TK2MSFTNGP04.phx.gbl...
Our IT team relocated our application servers yesterday. They had to
take
one machine out of the cluster because it would prompt users for
credentials if accessed using the IP address, which I guess is what
happens when it is accessed through the firewall. However, it works as
expected when I use the machine name in place of the IP address.

To summarize, the application servers were moved to a new hosting site
and
one machine is behaving badly. Here are the scenarios:

If I access www.myfqdn.com from the internet and I happen to hit the
server that is misbehaving, I am presented with a windows logon prompt.

If I access http://machinename/myapp/mypage.aspx, then it works as
expected.

If I access http://machineip/myapp/mypage.aspx, then I am presented
with a
windows logon prompt.
Any clues or suggestions of where to ask this question would be greatly
appreciated.

Of course, cancelling the windows logon prompt results in the 401.1
error.

Carl

Thank you both for your responses. I will check the IIS group.

Carl
Oct 12 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: turnit \(removethis\) | last post by:
I have a login form that uses the post method to carry the information to the next page. The form works just fine in ie6.0, but fails in mozilla and fails in ie5.2 on a mac. "HTTP/1.1 400 Bad...
3
by: Gizmo | last post by:
hello all have been trying to write a Mid() function a bit like the one in vb. i come to compile it and there are no errors however when i run it an error accours and it says the program has to...
0
by: Trophy Thief | last post by:
I'm getting an odd error when I try to run a select statement in my stored procedure. I need to select records where one field = the first host variable, and the second host variable is between the...
2
by: Max | last post by:
Sometimes I get this error when testing web.mail: The server rejected one or more recipient addresses The server response was: 473 kjhg@Kjhg.com relaying prohibited. You should authenticate first...
11
by: Tomas Kepic | last post by:
Hi, i'm trying to create my first ASP.NET project ( HelloASPWorld project) but an error occured when I put OK button in NewProject. ERROR: "The Web server reported the following error when...
1
by: Cory Koski | last post by:
Hi all, I'm currently trying to build a component I can use in traditional ASP that utilizes the .NET webservice. I'm using VB.NET to create my class, and I am registering the class for COM...
3
by: fniles | last post by:
In our ASP page, we call XMLHttp to download XML files. When calling our page using localhost (localhost/myWebSite/myPage.htm), it works, but when calling using the IP address of the web server...
20
by: Lennart Anderson | last post by:
I have finally managed to get Apache 2.2.4, PHP 5.2.0 and MySQL to talk to each other. Everything seems to work OK when dealing with databases but as soon as I use a php-script that use $_server...
6
by: rn5a | last post by:
During registration, users are supposed to enter the following details: First Name, Last Name, EMail, UserName, Password, Confirm Password, Address, City, State, Country, Zip & Phone Number. I am...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.