I\'m setting up a demo of a project for a client. On my server I have a lot of sites built with different technologies that are running under different servers on different port
That way, when you call request.getRemoteAddr(), it will be providing the right information. By the way, you probably want to use the more standard header, which is X-Forwarded-For.