Using Consul over the network via .net core

I want to connect to Consul (version consul_1.7.2_windows_amd64) running on a separate machine. I am using .net core 3.1 with Consul nuget package(v 0.7.2.6).
I am using the following code but it is not working:-
ConsulClientConfiguration Config = new ConsulClientConfiguration();
Config.Address = new Uri(@“http://127.0.0.1”);

            var client = new ConsulClient(Config);
            var kv = client.KV;

Please assist

Hello @persepherone,

Welcome to the Forums, and thanks for joining! I did some digging around on that NuGet package, and it looks like it is created by a company external to HashiCorp. I found this by looking up the Consul Nuget Package. The package source code points to this repo.

I am not sure if anyone else is using this specific package, but you may want to reach out on the Consuldotnet Issues Page.

As for your code - what is it you’re trying to do? Are you trying to make a Consul aware application,?

I hope you’re able to get a response from G-Research, and hopefully my reply finds others who have used this package.

Good Luck,
Jono

I think the address that you have to specify in the ConsulClientConfig should point at Consul running on that separate machine. Perhaps try something like “http://192.168.1.100:8500” for the Uri.