Hi,
I have a strange configuration of a network. I try to explain:
A. Couchbase Server - 192.168.0.1 local network - 172.16.0.22 vpn network. A is a single cluster node server and it’s name is 172.16.0.22 ;
B. Other application Server - 192.168.0.2 local network, B can’t stay on VPN.
When i try to connect from B to A with my .net sdk to do some n1ql query
config = new ClientConfiguration
{
Servers = new List<Uri> {
new Uri(string.Format("http://{0}:{1}",
_host, // 192.168.0.1
_port
)
),
},
BucketConfigs = new Dictionary<string, BucketConfiguration> {
{
_bucket, new BucketConfiguration {
PoolConfiguration = new PoolConfiguration {
....
},
BucketName = _bucket
}
}
}
};
cluster = new Cluster(config);
bucket = cluster.OpenBucket(_bucket);
var request = new Couchbase.N1QL.QueryRequest().Statement(qry)
var result = bucket.Query<dynamic>(request);
I get this error:
The connection to ‘172.16.0.22’ failed. Error: TimedOut (0x274c). System.Net.Sockets.SocketException
How can i use the same ip(local ip) that i have passed on my servers configuration?
Is there some method to override this parameter auto setted in some bootstrap moment?
Thanks,
g.