There are couple of ways to get IP address.
HttpContext.Current.Request.UserHostAddress;
or
HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
If you want IP Address of the machine, regardless of the proxy settings, you can go for :
HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR");