How can i find client's ip?
I use Sun Studio creator developing jsf portlets deploying on Tomcat+JBoss LIferay portal.My problem is that i cannot find how could i get client's ip address?Thanks a lot in advance.
[205 byte] By [
epp-665a] at [2007-11-14]

:( Unfortunately it was the javascript i entered behind the button and not the possible solution(String remoteAddr = ((HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest()).getRemoteAddr();
)! :) It returns me null. Is there any idea about this?
I place this code inside the custom class: "portletPage1" which extends AbstractPageBean.
Dear BalusC,Your help was valuable. Now it really seems working fine.(Note: Instead of getRemoteAddr(), i used getRemoteUser() cause the first one does not exists for PortletRequest ).Best Regards.