title: How to register a service using Spring Cloud Consul
body: <p>I have registered a service using <strong>Spring Cloud Consul</strong>, but for this I had to run a <strong>Consul local agent</strong> which establishes a channel communication to <strong>Consul server node</strong> (running as bootstrap).</p>
  
  <p><em>For example:</em></p>
  
  <pre><code>#Server
  consul agent -server -bootstrap -bind -data-dir data -ui-dir web_ui
  
  #Desktop
  consul agent -data-dir consul -ui-dir consul/dist -join server_ip_address
  </code></pre>
  
  <p>Is there any way to avoid of having this local agent in my desktop, I mean from my desktop <strong>Spring Cloud Consul</strong> would register the service to server node? </p>
  
  <p>An example of this is what Netflix Eureka client does with Netflix Eureka server, no external agents running in machines to bind services names.</p>