question

brendan avatar image
brendan asked

Consul.NET SDK and Consul Server

Question from a developer:

I am trying to set up Consul for a microservices architecture. I want to use Consul.NET as a wrapper over the Consul HTTP API, but I encountered a problem: the ConsulClient has the Uri set as 127.0.0.1:8500. Is there a reason for this? What if I want to set a client on a different endpoint?

sdks
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

That's the default client address - have a look at the Consul docs, here (https://www.consul.io/docs/agent/basics.html) for more info on how to update that, if you'd like to use something different.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.