hoe to get remote ip address in jsf
how to get remote ip address from jsf pages.
And how to get from bean.
i use jsf and apache myfaces.
Leave a comment...
- 1 Comments
- You'd do it the same way as you do with regular JSP's - get it from the HttpRequest object. The only difference is that you have to get the HttpRequest from the FacesContext, since it's not passed directly to the backing bean.
However, there are limits to the usefulness of having the requester's IP address - When NAT is in use, literally thousands of different requesters can appear to have the same IP address at the same time.#1; Wed, 16 Jul 2008 13:19:00 GMT