My client code uses clientLibrary in .NET. It talks to a remote couchbase server via CouchbaseClient(). I have encountered a connection issue. If the client doesn’t send requests to the remote server in few minutes it seems the connection is closed. The result is the server cannot find the document client requested. But I don’t have this problem if couchbase is on local machine.
I know CouchbaseClientSection in web.config has a lot of options, not sure which one to look at.
Looks like your client cannot reach particular ports on the server.
There could be several issues:
firewall is blocking ports on your remote server
remote server has several network interfaces and the Couchbase picks private interface, which isn’t accessible from your client.
combination of above
Here is how you can verify it. Lets imagine you have remote server at node.avsej.net (i’m not familiar with windows, therefore I will use online tools)
Hi, Thank you for the reply. I wasn’t clear in my question. My client is able to reach the remote server, in most cases it works fine. But if the client rests for a couple of minutes and reach the server again it gets the problem I described. I did opened the ports on the server:
8091
8092
11210
11211
Hi, Thank you for the reply. I wasn’t clear in my question. My client is able to reach the remote server, in most cases it works fine. But if the client rests for a couple of minutes and reach the server again it gets the problem I described. I did opened the ports on the server: