title: Eureka always returns url with port 8080
body: <p>Port 8080 is always returned from eureka no matter what configuration is in the client. Here is an example of my eureka configuration on the client:</p>
  
  <p>This is the application.yml </p>
  
  <pre><code>eureka:
    client:
      register-with-eureka: true
      fetch-registry: false
      serviceUrl:
        defaultZone: http://eurekaserver.com/eureka
    instance:
      nonSecurePort: 80
      nonSecurePortEnabled: true
      hostname: myhost
  </code></pre>
  
  <p>The application using the above configuration will try to register with eureka. it can successfully register but eureka returns <code>http://myhost.com:8080</code>. The expected url is suppose to be <code>http://myhost.com</code>.</p>
  
  <p>The application runs on port 8080 however the restendpoint is reached by <code>http://myhost.com</code>. is there any way to fix this?</p>
  
  <p><strong>--Edit--</strong></p>
  
  <p>here is my bootstrap.yml</p>
  
  <pre><code>spring:
    application:
      name: myappname
  </code></pre>