You should actually read the value set in the COUCHDB_PORT. Someone might want to use different port