Port 6379 (Redis)
TCPRedis In-Memory Data Store — Redis listens on port 6379 by default.
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 streaming engine. Redis is one of the most popular NoSQL databases, known for its exceptional performance.
Redis on port 6379 supports data structures including strings, hashes, lists, sets, sorted sets, bitmaps, and streams. It achieves microsecond response times by keeping all data in memory, with optional persistence to disk. Redis is widely used for caching, session management, real-time analytics, and pub/sub messaging.
Redis has no authentication by default, and exposing port 6379 to the internet has led to numerous data breaches and cryptocurrency mining attacks. Always set a password (requirepass), bind to localhost or specific interfaces, use TLS encryption, and restrict network access with firewalls.
Port 6379 Security
Redis with default configuration has no password and binds to all interfaces, making it a prime target for automated attacks. Attackers exploit open Redis instances to inject SSH keys, install cryptocurrency miners, and gain system-level access through the CONFIG SET command.
Security measures include: setting a strong password (requirepass), binding to localhost (bind 127.0.0.1), disabling dangerous commands (rename-command CONFIG), enabling TLS encryption, using ACLs (Redis 6+), and running Redis as a non-root user. Never expose Redis to the internet.
How to Check Port 6379
To check if port 6379 is open on a remote host, use nmap: 'nmap -p 6379 hostname'. For a quick TCP connection test, use: 'telnet hostname 6379' or 'nc -zv hostname 6379'. On Windows PowerShell, use: 'Test-NetConnection -ComputerName hostname -Port 6379'.
To check if port 6379 is listening on your local machine, use: 'netstat -tlnp | grep 6379' on Linux, or 'ss -tlnp | grep 6379'. On Windows, use: 'netstat -an | findstr 6379'. For a comprehensive scan, use: 'nmap -sV -p 6379 hostname' to detect the service version running on the port.
Related Ports
Frequently Asked Questions
What is port 6379 used for?
Port 6379 is the default port for Redis In-Memory Data Store (Redis). It is used for redis communication using the TCP protocol.
Is port 6379 TCP or UDP?
Port 6379 uses TCP. TCP is used because redis requires reliable, ordered data delivery.
Should port 6379 be open?
Port 6379 should only be open if you are actively running Redis. Close unused ports to reduce your attack surface. If needed, restrict access to trusted IP addresses using firewall rules.
How do I check if port 6379 is open?
Use 'nmap -p 6379 hostname' to scan remotely, or 'netstat -tlnp | grep 6379' to check locally on Linux. On Windows, use 'Test-NetConnection -Port 6379 hostname' in PowerShell.
How do I secure port 6379?
Secure port 6379 by restricting access with firewall rules, using encryption (TLS/SSL) where supported, keeping Redis updated, using strong authentication, and monitoring for unauthorized access attempts.
🔍 Check Your IP Address
While you're here, find out your public IP address, location, and ISP details instantly.
Check My IP →