Tuesday, September 14, 2010

Resolving "Connection Refused" Error With CouchDB 1.0.1 on WindowsServer

If you run into a "Connection Refused" error when trying to access CouchDB from somewhere other than localhost, luckily it's an easy fix.

By default CouchBD is set to bind only to, which I suppose is nice for security reasons since when you first install CouchDB it's wide open.

To fix this, open {couchdb_install_dir}etccouchdbdefault.ini and in the [httpd] section, change the bind_address value from to so it will be accessible from any IP.

Save the file, restart CouchDB, and you should be golden.


Unknown said...


Saphkey said...

Thank you very much for this post!
It's so simple. I can't believe they don't mention localhost being the only default connection, or how to change this in the "Getting started with CouchDB" document.

Robert Kinsey said...

Can't get this to work, can ssh into the machine, but not to couchdb, access denied, is there possibly another setting that is causing this?

Matt Woodward said...

What OS are you using? You may have to open the port in the machines iptables or firewall settings.

Rob Kinsey said...

Thanks for such a quick reply, Linux, raspberry pi but actually, I have just found the answer, it was the firewall at work, I was trying to ssh using putty, it didn't occur to me that both machines need to have that port open. Anyway, I successfully connected to another linux machine, so all good now.

Nitesh Kumar said...

I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in Couch DB, kindly contact us http://www.maxmunus.com/contact
MaxMunus Offer World Class Virtual Instructor led training on Couch DB. We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.
For Demo Contact us.
Nitesh Kumar
E-mail: nitesh@maxmunus.com
Skype id: nitesh_maxmunus
Ph:(+91) 8553912023