HttpContext.Current.Request.Url.Authority in NLB

B

Billy Zhang

I have a NLB environment. 102 and 103 are the two machines' IP.
107 is the virtual IP. I used below code to get the URI.

public static string GetEnvironment()
{
return "http://" +
HttpContext.Current.Request.Url.Authority +
HttpContext.Current.Request.ApplicationPath.TrimEnd('/') + "/";
}

The problem is that:

sometimes I got 107, and sometimes I got 102. Why?
 
S

Steven Cheng

Hi Billy,

Regarding on this issue, I have replied you in another post you posted
earilier. Please feel free to have a look there.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top