Hi,
I develope in jboss-4.0.3 a servlet service code like this:
public void service(HttpServletRequest request, HttpServletResponse response){
System.out.println("local address is"+request.getLocalAddr());
}
it allways show ip server.. 101.11.11.1
I think this method "getLocalAddr()" will show Ip client ..
because of that tomcat give response for wrong client
Thanks in advance for any help,
freechild
Is there a bug in Tomcat?
I always get 127.0.0.1 from request.getRemoteAddr()!
I'm trying to the actual client's IP address which getRemoteAddr is supposed to return.