En son aşağıdaki kodlar ile yapabildim. localhost ta ::1 gözüküyordu ama canlıya aldığımda IP adresini gösteriyor.
public static string GetUserIP()
{
var IP = string.Empty;
if (HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"] != null)
IP = HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"].ToString();
else if (HttpContext.Current.Request.ServerVariables["HTTP_CLIENT_IP"] != null && HttpContext.Current.Request.ServerVariables["HTTP_CLIENT_IP"].Length != 0)
IP = HttpContext.Current.Request.ServerVariables["HTTP_CLIENT_IP"];
else if (HttpContext.Current.Request.UserHostAddress.Length != 0)
IP = HttpContext.Current.Request.UserHostName;
return IP;
}