title: Connection Refused for Consul
body: <p>I am starting a Spring Boot Application with Consul.</p>
  
  <p>I am getting the following error </p>
  
  <pre><code>2019-08-30 12:34:22.650 ERROR 23428 --- [           main] o.s.boot.SpringApplication               : Application run failed
  com.ecwid.consul.transport.TransportException: org.apache.http.conn.HttpHostConnectException: Connect to localhost:8090 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect`
  </code></pre>
  
  <ol>
  <li>I changed the default port in <code>bootstrap.properties</code> file.</li>
  <li>I also used another non-Consul Spring Boot Application and it worked fine for that use-case with same port.</li>
  </ol>