title: Spring boot (Netflix) Eureka replicas
body: <p>I can't configure Eureka with a replica. I have two instances of Eureka Server running on the same laptop. It always see each other as <strong>unavailable-replica</strong>.</p>
  
  <p>The is what the Eureka panel says:
  <a href="https://i.stack.imgur.com/HsJFJ.png" rel="nofollow noreferrer">Eureka message</a></p>
  
  <p>These are the application.yml  files:</p>
  
  <pre><code>------------------------------
  server:
      port: 8761
  
  eureka:   
      instance:
          hostname: eurekaserver1
      client:
         registerWithEureka: false
         fetchRegistry: false
         serviceUrl:
            defaultZone: http://localhost:8762/eureka
  
  --------------------------------
  
  server:
      port: 8762
  
  eureka:
      instance:
         hostname: eurekaserver2
      client:
         registerWithEureka: false
         fetchRegistry: false
         serviceUrl:
            defaultZone: http://localhost:8761/eureka
  
  --------------------------------
  </code></pre>