Port 6379: Redis

Port 6379 (TCP) is used by Redis. Default Redis port. Older versions had no password by default and were mass-exploited when exposed.

6379Port
TCPProtocol
redisIANA service name
DatabasesCategory

Port range

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

Security

Port 6379 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 6379 in a firewall

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

Check if port 6379 is open

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

Other databases ports

Frequently asked questions

What is port 6379 used for?
Redis. Default Redis port. Older versions had no password by default and were mass-exploited when exposed.
Is port 6379 TCP or UDP?
TCP.