Title: GetUserIP                                 If you need copy same format use firefox or chrome or safari but iexplorer not work


Preview of Code
  public static class GetUserIP
    {
        public static string GetIPAddress()
        {
            var context = HttpContext.Current;
            string ipAddress = context.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
 
            if (!string.IsNullOrEmpty(ipAddress))
            {
                string[] addresses = ipAddress.Split(`,`);
                if (addresses.Length != 0)
                {
                    return addresses[0];
                }
            }
 
            return context.Request.ServerVariables["REMOTE_ADDR"];
        }
    }
 
 
 
 // store the user info of the wrong number
   var userIP = GetUserIP.GetIPAddress();