Reputation: 4738
I cannot connect to a couchbase server that runs on a different computer of the same local network.
The machine has the IP address 192.168.1.150. I use the official hello-couchbase tutorial for the Java SDK. Thus, my code looks like this:
Cluster cluster = CouchbaseCluster.create("192.168.1.150");
Bucket bucket = cluster.openBucket();
The second line triggers:
com.couchbase.client.deps.io.netty.channel.ConnectTimeoutException: connection timed out: /192.168.1.150:11210
Is there any way to narrow down the reason for the connection failure? The webclient on localhost:8091 (in a browser of the remote machine) tells me that the server is running.
Upvotes: 1
Views: 5443
Reputation: 106
This sounds like a problem with a firewall. Can you telnet from your client machine to the Couchbase server on port 11210? From a command prompt, type telnet 192.168.1.150 11210
If you see a blinking cursor, the test succeeded and the firewall is likely not a problem. You may need to install a telnet client if it isn't already available. Windows Telnet installation: http://www.wikihow.com/Activate-Telnet-in-Windows-7
Upvotes: 1