Thank you for your answers but it did not help me. Because I m using IIS, tomcat and Apache and I need to resolve for all http server.
When I try to show client's ip on server , I can see by like this jsp code " out.print(request.getHeader("X-Real-IP"));"
but ip based access rules on apache,tomcat and IIS are not working.Actually I need to not change client's ip. could ngnix work transparent mode ?