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?
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?