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 127.0.0.1, 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 127.0.0.1 to 0.0.0.0 so it will be accessible from any IP.

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

2 comments:

Unknown said...

Thanks!

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.