Retrive IP address in tomcat or JBoss

Pls let me know the implementation for retrieving the IP address of a remote user accessing the web application running under tomcat server.

The IP address should be displayed on tomcat server upon his entry into the application .

Is it possible to implement using getRemoteAddr() method.

I would appreciate any support and ideas from the other end.

Thanks in advance.

[399 byte] By [inCREAMenta] at [2007-10-2 13:46:29]
# 1
Umm.. yes getRemoteAddr() would do the trick. Why didn't you try it before you posted?
somaiaha at 2007-7-13 11:44:04 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...