title: Localhost Spring Boot service not found
body: <p>I am studying Spring Cloud and I am developing a study project.</p>
  
  <p>I create a project that represents a simple REST API using Spring Boot and I run this in localhost.</p>
  
  <p>I also created another project API Gateway, this one gets the request coming and calls the REST API, I am also running this one in localhost.</p>
  
  <p>When I run the REST API and send a request to it, it responds properly, but if I send the request to API Gateway when API Gateway tries to call the REST API using RestTemplate it is getting this exception:</p>
  
  <blockquote>
    <p>java.lang.IllegalStateException: No instances available for localhost</p>
  </blockquote>
  
  <p>Both services are running in localhost.</p>
  
  <p>Do anyone knows what is the cause of this error?</p>