TCPRegistered PortFirewall: Usually Closed
6379

Redis

What is Port 6379?

Port 6379 is the default port for Redis, an in-memory data structure store used as a database, cache, message broker, and queue. Created by Salvatore Sanfilippo in 2009, Redis is known for its exceptional performance — capable of handling millions of operations per second. Redis supports rich data structures including strings, hashes, lists, sets, sorted sets, bitmaps, hyperloglogs, and streams. It's used as a caching layer by virtually every major web application to reduce database load and improve response times. Redis is also used for session storage, real-time leaderboards, pub/sub messaging, rate limiting, and job queues (via Sidekiq, Bull, Celery). Cloud-managed versions include AWS ElastiCache, Azure Cache for Redis, and Redis Cloud.

Common Uses

  • Application caching layer for performance
  • Session storage for web applications
  • Real-time pub/sub messaging
  • Job queue and background task processing
  • Rate limiting and counter implementation

Technical Details

Port Number6379
ProtocolTCP
CategoryRegistered
Service NameRedis
Default FirewallUsually Closed
Port Test Commands

Copy-paste commands to check port 6379 (Redis) from your terminal

Test connectivity

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

Open port in firewall

UFW (Ubuntu / Debian)
sudo ufw allow 6379/tcp
iptables
sudo iptables -A INPUT -p tcp --dport 6379 -j ACCEPT
firewalld (RHEL / CentOS)
sudo firewall-cmd --permanent --add-port=6379/tcp && sudo firewall-cmd --reload

Security Considerations

!

Redis with no authentication has been massively exploited — attackers write SSH keys or cron jobs to gain server access. ALWAYS set a strong password with requirepass. Use ACLs (Redis 6+) for fine-grained access control. Enable TLS for encrypted connections. Bind to 127.0.0.1 or use firewall rules. Disable dangerous commands (FLUSHALL, CONFIG) in production. Never expose Redis to the internet.

Popular Ports Reference

The most commonly used and referenced network ports

Related Ports