6.8 Client IP Address
You may need to resolve the originating IP address of an HTTP Request. Micronaut ships with an implementation of HttpClientAddressResolver.
The default implementation will resolve the client address in the following places in order:
The configured header
The
Forwarded
headerThe
X-Forwarded-For
headerThe remote address on the request
The first priority header name can be configured with micronaut.server.client-address-header
.