You should actually read the value set in the COUCHDB_HOSTNAME otherwise if the server is remote is not going to work