My web application is running behind a proxy. Without ssl, I can get user's IP address simply by;
HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"]
If I try the same thing with https then HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"] returns nothing.
I should definitely use SSL, so what might cause this behaviour that I can get client's IP address only without https?
If you need more info please let me know.