Since 2.5.267

 In case your PC is located behind proxy then you need to configure PC similar for Tomcat/Catalina connector use these properties in file.

The and proxy.port attributes can be used when PC is run behind a proxy server.

 Without configuring these attributes, the values returned would reflect the server name and port on which the connection from the proxy server was received, rather than the server name and port to whom the client directed the original request.

Details online, please feel free to check.