System.Web.HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"].ToString()

Code