In case prefer-ip is true and no server.address is set use the IP address from InetAddress.getLocalHost(); like it is done in Eureka.