'I am getting invalid remote address in cloud environments when i user request.getRemoteAddr()

I am getting remote address like this 10.1.0.4:57443 when i deploy my application in cloud setup and trying to get request.getRemoteAddr(). it is returning vm jumpbox ip and some port. could you please anyone help me to get right value or why i am getting like this.

I am getting remote address like this 10.1.0.4:57443 when i deploy my application in cloud setup and trying to get request.getRemoteAddr(). it is returning vm jumpbox ip and some port. could you please anyone help me to get right value or why i am getting like this.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source