开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜