title: Eureka service always registers instances with host name even though i put "prefer-ip-address: true"
body: <p>I want to register my micro services in Eureka with the IP address instead of host name.</p>
  
  <p>I have tried both <strong>prefer-ip-address</strong> and <strong>eureka.instance.preferIpAddress=true</strong> properties. None of those worked for me.</p>
  
  <p>Here is my eureka service application .yml file.</p>
  
  <p><a href="https://i.stack.imgur.com/LIRoU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LIRoU.png" alt="enter image description here"></a></p>
  
  <p>This is my Authorization-server micro-service application.yml</p>
  
  <p><a href="https://i.stack.imgur.com/LYFip.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LYFip.png" alt="enter image description here"></a></p>
  
  <p>But still eureka console showing my services registered with host name(localhost) instead of IP address</p>
  
  <p><a href="https://i.stack.imgur.com/LVzvQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LVzvQ.png" alt="enter image description here"></a></p>
  
  <p>I am using Spring boot 2.2.2 version and Spring cloud Hoxton.RELEASE. I am guessing the properties aren't working properly. </p>
  
  <p>Is anyone experiencing the same problem?</p>