title: Eureka Client Registered with Container IP in ECS Fargate
body: <p>We deployed Spring Boot services in the ECS Fargate with Eureka Registry Service, Gateway Service and a few business services. In the Eureka registry page all the client services registered were showing same IP (could be container IP).</p>
  <p>Please share what configuration should be provided to register with ECS task private ip instead of container IP. Thanks in advance.</p>
  <p><a href="https://i.stack.imgur.com/x2OkT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x2OkT.png" alt="enter image description here" /></a></p>
  <p><strong>Eureka Service Application Properties:</strong></p>
  <p>server.port=8080</p>
  <p>eureka.client.register-with-eureka=false</p>
  <p>eureka.client.fetch-registry=false</p>
  <p><strong>Eureka Client Service Application Properties</strong></p>
  <p>server.port=8766</p>
  <p>spring.application.name= client-service</p>
  <p>eureka.client.register-with-eureka=true</p>
  <p>eureka.client.fetch-registry=true</p>
  <p>eureka.instance.prefer-ip-address= true</p>
  <p>eureka.client.service-url.defaultZone= :8080</p>
  <p>eureka.instance.lease-renewal-interval-in-seconds=30</p>