Can't connect to droplet couchdb server over the internet - connection has timed out

Posted December 29, 2018 2.1k views
DigitalOceanUbuntu 16.04Databases

I’ve set up a couchdb v 2.3.0 server on a new DO droplet. It’s running. See the following from an ssh log:

skuilder@ubuntu-couchdb:~$ curl localhost:5984
{"couchdb":"Welcome","version":"2.3.0","git_sha":"07ea0c7","uuid":"843b432d607bc71c152acfce979e5d89","features":["pluggable-storage-engines","scheduler"],"vendor":{"name":"The Apache Software Foundation"}}

I’m also able to access the database and its web-based admin console via my on browser with ssh tunneling.

All good so far.

My droplet has a public ip at I’m able to successfully ping this ip, so I assume that the droplet is internet-facing in some capacity. But I’m unable to hit the database at, or the admin portal at with the browser (“The connection has timed out The server at is taking too long to respond.”)

I’ve enabled CORS on the database.

Any suggestions for troubleshooting? A database that can only be accessed from its own local machine wasn’t what I was intending.

NOTE: I did the initial ubuntu setup here, including the UFW firewall setup, which I assume is the problem. The database is serving from port 5984, and I’ve tried sudo ufw allow 5984, but no luck yet.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer


Can you make sure CouchDB is set to listen on the public IP like this:

bind_address =

Right now it’s likely listening on the local loop only.