Port 5984: CouchDB

Port 5984 (TCP) is used by CouchDB. Apache CouchDB HTTP API.

5984Port
TCPProtocol
couchdbIANA service name
DatabasesCategory

Port range

5984 is a registered port (range 1024–49151). Any user can bind to it; IANA records which service registered the number.

Security

Port 5984 should not be reachable from the public internet. Restrict it to trusted networks or a VPN, and scan your public IP to confirm it is closed.

Open port 5984 in a firewall

ufw         sudo ufw allow 5984/tcp
iptables    sudo iptables -A INPUT -p tcp --dport 5984 -j ACCEPT
firewalld   sudo firewall-cmd --permanent --add-port=5984/tcp
Windows     New-NetFirewallRule -DisplayName "CouchDB 5984" -Direction Inbound -Protocol TCP -LocalPort 5984 -Action Allow

Check if port 5984 is open

nc -vz example.com 5984
Test-NetConnection example.com -Port 5984   # PowerShell
sudo ss -tulpn | grep ':5984 '   # what is listening locally (Linux)

Other databases ports

Frequently asked questions

What is port 5984 used for?
CouchDB. Apache CouchDB HTTP API.
Is port 5984 TCP or UDP?
TCP.