TCPRegistered PortFirewall: Usually Closed
5984

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

Port Number5984
ProtocolTCP
CategoryRegistered
Service NameCouchDB
Default FirewallUsually Closed
Port Test Commands

Copy-paste commands to check port 5984 (CouchDB) from your terminal

Test connectivity

Netcat (nc)Check if TCP port is reachable
nc -zv example.com 5984
curl (HTTP)Test HTTP response on this port
curl -v --max-time 5 http://example.com:5984/
TelnetBasic TCP port connectivity check
telnet example.com 5984
nmapScan port 5984 with service detection
nmap -p 5984 -sV example.com
Bash /dev/tcpPure bash TCP check (no extra tools needed)
(echo > /dev/tcp/example.com/5984) 2>/dev/null && echo "open" || echo "closed"

Open port in firewall

UFW (Ubuntu / Debian)
sudo ufw allow 5984/tcp
iptables
sudo iptables -A INPUT -p tcp --dport 5984 -j ACCEPT
firewalld (RHEL / CentOS)
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

Related Ports