0 Replies Latest reply on Feb 27, 2008 5:06 AM by galia nikolova

    How can i get client's ip

    galia nikolova Newbie

      Hi, i need to get client's ip in portlet, and all my tries failed :(
      If we use servlet, it's easy - ((ServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest()).getRemoteAddr();

      Other try - Instead of getRemoteAddr(), i used getRemoteUser() cause the first one does not exists for PortletRequest but it return null.


      so from portlet all my research said - mission imposible.

      Does anyone found a solution ?