- How to get IP of clients, the
request.getRemoteHost()or returns internal addresses. JBoss/Tomcat server is behind a load balancer.
How to validate the IP address of the clients in the application.When a load balancer is used, the IP address of the load balancer is reflected in the application. How can the IP address of the clients be retrieved? The code for getting the IP address is:
HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest(); String ipAddress = request.getRemoteAddr();
F5 load balancer is configured before jboss server. We need to capture client ip, at present it is sending in the header. What configuration should i do to capture the same ?
How to get the client IP address when JBoss EAP is frontend by Apache httpd server and using
- Red Hat JBoss Enterprise Application Platform (EAP)
- Behind a load balancer (e.g. F5 BIG-IP) or Apache httpd/mod_proxy (not mod_proxy_ajp)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.