cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prinston <>
Subject Problem: When invoke HttpServletRequet.getRemoteAddr(), it return the old client IP...
Date Fri, 25 Jan 2008 07:37:52 GMT


I put some code into a web method to get client IP.

public boolean recordIP() {
	try {
		debugInfo.append(" ").append(
		((HttpServletRequest) ctx
		return true;
	} catch (Exception e) {
		return false;

When the first client from IP1 call this method, it record the IP1 address.
No problem.
But then the second client from IP2 call this method, it "SOMETIMES" still
record the IP1 address (the old one).
This situation might occur in some condition (ex: after browsing some other
jsp page in other web ap in the same web instance). I am not sure what
condition may cause this problem exactly.

Has anyone got this problem before? Thanks!

My AP configuration: Apache 2.2.24+Tomcat5.5.20(using AJP13
View this message in context:
Sent from the cxf-user mailing list archive at

View raw message