How can I know real client IP in Websphere 8.5.5 and JAVA Web application

310 Views Asked by At

My server receives requests from Internet Explorer. And my server is a java web application and it is Websphere 8.5. I tried HttpRequestServlet.getRemoteAddr(), this was the IP of L4, not real client IP. I found that I could get the real IP from headers like X-Forwarded-For etc. In IE and Websphere, From which header can I get the real IP? or how can I get the real IP?

1

There are 1 best solutions below

0
Kotler On BEST ANSWER

Now X-forwarded for IHS and Websphere version not require

So you should used layer 4 with load balance is HAProxy with open source or F5 with load balance with money

and you can used nginx or apache for get IP for real IP X-Forwarded Thanks and regards tandn