You can use the consul.client.registration.prefer-ip-address setting to indicate you would prefer to register with the IP address.

    Consul HTTP Check Configuration

    If you use HTTP health checks (see the previous section) then Consul will use the configured IP address to check the Micronaut endpoint.

    1. consul:
    2. registration:
    3. prefer-ip-address: true
    4. http: true