Ver Mensaje Individual
  #2 (permalink)  
Antiguo 17/11/2011, 11:58
Avatar de bieres
bieres
 
Fecha de Ingreso: marzo-2011
Mensajes: 63
Antigüedad: 13 años, 1 mes
Puntos: 5
Respuesta: obtener IP de visitantes de mi web

Hola Kharen, prueba con esto.
Código:
        string ipAddress = string.Empty;
        if (!string.IsNullOrEmpty(Request.ServerVariables[""]))
        {
            
            ipAddress = Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
        }
        else
        {
            ipAddress = Request.ServerVariables["REMOTE_ADDR"];
        }
__________________
http://medprest.com