CouchDB
What is Port 5984?
Port 5984 is the default port for Apache CouchDB, a document-oriented NoSQL database that uses JSON for storing data, JavaScript for MapReduce queries, and HTTP/REST for its API. Created by Damien Katz and later donated to the Apache Foundation, CouchDB is designed for reliability and ease of use. Its standout feature is master-master replication, which allows multiple database copies to synchronize automatically, making it ideal for distributed and offline-first applications. CouchDB's HTTP API means you can interact with it using any HTTP client — curl, a web browser, or any programming language. PouchDB, a JavaScript database that syncs with CouchDB, enables offline-first web and mobile applications.
Common Uses
- Document-oriented data storage with REST API
- Offline-first mobile and web applications
- Multi-master data replication across data centers
- Content management and CMS backends
Technical Details
Copy-paste commands to check port 5984 (CouchDB) from your terminal
Test connectivity
nc -zv example.com 5984
curl -v --max-time 5 http://example.com:5984/
telnet example.com 5984
nmap -p 5984 -sV example.com
(echo > /dev/tcp/example.com/5984) 2>/dev/null && echo "open" || echo "closed"
Open port in firewall
sudo ufw allow 5984/tcp
sudo iptables -A INPUT -p tcp --dport 5984 -j ACCEPT
sudo firewall-cmd --permanent --add-port=5984/tcp && sudo firewall-cmd --reload
Security Considerations
CouchDB has had critical vulnerabilities, including a privilege escalation that allowed creating admin accounts on unprotected instances. Always set up admin credentials before deploying. Enable authentication and set bind_address to 127.0.0.1 if external access isn't needed. Use HTTPS for all connections. Keep CouchDB updated. Never expose an unauthenticated CouchDB to the internet.
Popular Ports Reference
The most commonly used and referenced network ports