Cannot boot strap using remote (not local) instance of CouchBase

When running an instance of a WEB API project that is not local to the CouchBase sever I get the following error:

{“No connection could be made because the target machine actively refused it”}

I would expect that the IP address of the server that CouchBase is running on would be returned, this is causing the Web API to talk to its local system.

I am using the following web.config:

 >  <configSections>
>     <sectionGroup name="couchbase">
>       <section name="bucket" type="Couchbase.Configuration.CouchbaseClientSection, Couchbase" />
>     </sectionGroup>
>   </configSections>
>   <couchbase>
>     <bucket>
>       <servers bucket="tinman">
>         <add uri="" />
>       </servers>
>     </bucket>
>   </couchbase>

And in the global.asa I have:

private static Cluster Cluster { get; set; }
public static IBucket Bucket;

    protected void Application_Start()
        Cluster = new Cluster();
        Bucket = Cluster.OpenBucket("tinman");

    protected void Application_End()
        if (Bucket != null)
        if (Cluster != null)

I install the CouchBase server using the IP of the host ( instead of

When running the same Web API project locally on the CouchBase server the application works as expected. For some reason the proxy details are being passed as localhost.


In Application_Start, you are using the default ctor which will use the default configuration (localhost). You just need to change:

Cluster = new Cluster();


Cluster = new Cluster("couchbaseClients/couchbase");

And then update your configuration file to look like this:

<?xml version="1.0" encoding="utf-8" ?>
    <sectionGroup name="couchbaseClients">     <section name="couchbase" type="Couchbase.Configuration.Client.Providers.CouchbaseClientSection, Couchbase.NetClient" />
        <add uri=""></add>
        <add name="tinman"></add>

Now it should work!