axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vitali W. Danilow" <bobl...@mysterion.de>
Subject Re: Client IP address
Date Sat, 18 Oct 2003 23:06:25 GMT
here we go...

private String getClientIP() {
        HttpServletRequest srv = (HttpServletRequest) MessageContext.getCurrentContext().getProperty(HTTPConstants.
            MC_HTTP_SERVLETREQUEST);

        if (srv != null) {
            return srv.getRemoteAddr();
        }
        else {
            return null;
        }
    }

cu boblgum


Mime
View raw message