localhost:5984 (CouchDB): connection refused and fixes
Port 5984 is the default port of Apache CouchDB. How to open Fauxton and fix errors.
Open this address: http://localhost:5984This opens on your own computer. It only works if the program is running.
localhost:5984 is Apache CouchDB. The root shows a small JSON welcome message. The browser admin page, called Fauxton, is at localhost:5984/_utils.
What runs on localhost:5984
- Apache CouchDB
- CouchDB in Docker published on 5984
Commands to start and test port 5984
curl http://localhost:5984/docker run -d -p 5984:5984 -e COUCHDB_USER=admin -e COUCHDB_PASSWORD=change-me couchdbcurl -u admin:change-me http://localhost:5984/_all_dbsFind what is using port 5984
Run these in a terminal on your computer. Nothing is sent to this site.
If localhost:5984 will not open
- First-time setup
- CouchDB’s docs open the setup page at
http://127.0.0.1:5984/_utils#setup. Choose Single-Node-Setup, create an admin user, and record it. The wizard creates the system databases_users,_replicatorand_global_changes. If you skip it, create them yourself. You can also set[couchdb] single_node=truein local.ini and restart. - Private or reachable from the network
- Binding CouchDB to 127.0.0.1 keeps it private. Binding to 0.0.0.0 makes it reachable on every address, including your LAN, so set an admin password first.
- The page shows only a small JSON message
- That is normal. CouchDB answers with its version at the root. The admin page is at /_utils.
- Unauthorized
- Use the admin username and password you set. Recent CouchDB versions require an admin account.
- Port 5984 is already in use
- Another program is on this port. Find it with the tool below and stop it, or start yours on another port.
- This site can’t be reached (ERR_CONNECTION_REFUSED)
- The program is not running. Start it and keep that terminal open. See the full checklist.
- Works on your computer, not on your phone
- Start the server on all network addresses and use your computer’s IP address. See how to open localhost from your phone.
Other ports like 5984
| Port | Usually used by |
|---|---|
| localhost:3306 | MySQL, MariaDB |
| localhost:5432 | PostgreSQL |
| localhost:27017 | MongoDB |
| localhost:6379 | Redis |
| localhost:11211 | Memcached |
| localhost:1433 | Microsoft SQL Server |
| localhost:8983 | Apache Solr |
Questions about localhost:5984
- What is Fauxton?
- The web admin page of CouchDB, found at /_utils.
- Is localhost:5984 safe?
- Yes, as long as it stays on localhost. Only your own computer can reach it. It becomes reachable from other devices only if you start the program on 0.0.0.0 or your computer's IP address. Do not put development or admin tools on the public internet.