title: Eureka registration with specifc hostname / ip
body: <p>I would like to register my service with the Eureka server, using a specific Hostname or IP.</p>
  
  <p>This is my configuration snippet:</p>
  
  <pre><code>eureka:
    client:
      serviceUrl:
        defaultZone: http://localhost:8761/eureka
    instance:
      preferIpAddress: true
      hostname: localhost
      ipAddr: 127.0.0.1
  </code></pre>
  
  <p>I am using the 2.0.2.RELEASE version of client.</p>
  
  <p>I would expect the service to register with 127.0.0.1; if I switch <code>preferIpAddress</code> to false, I would expect it to register with <code>localhost</code>.</p>
  
  <p>Instead, I always get this:</p>
  
  <blockquote>
    <p>APPLICATION/1H1DNQ2.mshome.net:application:8080 -
    Re-registering apps/APPLICATION</p>
  </blockquote>
  
  <p><code>1H1DNQ2</code> is my PC id. I also tried using <code>eureka.hostname</code>, same result.</p>