HTTPfy

Port 6379 (Redis)

Redis key-value store, also used by Valkey and KeyDB.

Registered (user) port, 1024-49151 TCP Caches Do not expose to the internet

What port 6379 is used for

Redis key-value store, also used by Valkey and KeyDB.

Security: should port 6379 be open?

Do not expose to the internet. Never expose it. Older Redis versions had no password by default, and attackers abuse open instances to write SSH keys or cron jobs to disk (CONFIG SET dir) and to load malicious modules. Keep protected-mode on, bind to localhost or a private network, set ACL users with passwords, and rename or disable CONFIG/MODULE commands.

IANA assignment

Service nameProtoDescriptionAssigneeReference
redis TCP An advanced key-value cache and store Salvatore Sanfilippo -

Registry dates for this port: registered 2015-04-23.

Check what is listening on port 6379

Linux: is anything listening on TCP 6379?
sudo ss -tlnp 'sport = :6379'
Linux / macOS: which process owns the port
sudo lsof -nP -i :6379
Older Linux / BSD (net-tools)
sudo netstat -tlnp | grep ':6379 '
Windows (Command Prompt)
netstat -ano | findstr :6379
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 6379 -State Listen | Select LocalAddress,OwningProcess

Test it from outside

From another machine
nc -vz -w 5 HOST 6379
From Windows
Test-NetConnection HOST -Port 6379

Block port 6379 in the firewall

ufw
sudo ufw deny 6379/tcp
iptables
sudo iptables -A INPUT -p tcp --dport 6379 -j DROP
nftables
sudo nft add rule inet filter input tcp dport 6379 drop
Windows Firewall
New-NetFirewallRule -DisplayName 'Block TCP 6379' -Direction Inbound -Protocol TCP -LocalPort 6379 -Action Block

Related ports

All port numbers · Open port checker
Assignment data: IANA port number registry (public domain), retrieved 2026-11-10.