Is the UserHostAddress changed when using an F5 load balancer?
We are using a F5 load balancer for our servers. Our VB code is checking the UserHostAddress using HttpContext.Current.Request.UserHostAddress. My question is, will this value return the IP from the load balancer, or does it still have the client IP address?
I will post this on ServerFault as well in case this is more of a server issue. Any h开发者_StackOverflow社区elp would be great. Thanks.
HttpContext.Current.Request.UserHostAddress will return load balancer ip address.
You can configure F5 to include http header "X-Forwarded-For" that will contain client ip address.
精彩评论