Mostrando entradas con la etiqueta OBTENER IP DE LA CONEXIÓN DEL CLIENTE. Mostrar todas las entradas
Mostrando entradas con la etiqueta OBTENER IP DE LA CONEXIÓN DEL CLIENTE. Mostrar todas las entradas

OBTENER IP DE LA CONEXIÓN DEL CLIENTE


Dim ClientIP, Forwaded, RealIP


RealIP = ""


ClientIP = Request.ServerVariables("REMOTE_ADDR")
If ClientIP <> "" Then
            RealIP = ClientIP
Else
    'El usuario está accediendo a través de un Proxy.
    Forwaded = Request.ServerVariables("HTTP_X-Forwarded-For")
    If Forwaded <> "" Then RealIP = Forwaded
End If