var clientIpAddress = System.Web.HttpContext.Current.Request.Headers["X-Forwarded-For"] ?? System.Web.HttpContext.Current.Request.UserHostAddress;

                string[] stringSeparators = new string[] { "," };
                string[] Ip = clientIpAddress.Split(stringSeparators, StringSplitOptions.None);
bu dizi içerisinden alabilirsin. kolay gelsin