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.
consul:
registration:
prefer-ip-address: true
http: true