Port 6379 is the default Redis port. Redis by default has no authentication and binds to all interfaces – the most common Redis security mistake is exposing port 6379 to the internet. Redis 6+ supports TLS and ACL-based authentication. Always bind to localhost or use requirepass.
Port Number
6379
Protocol
TCP
Service
Redis In-Memory Store
Range
IANA Registered (1024–49151)
Basic connectivity test – should return PONG (or auth error if requirepass is set)
redis-cli -h host -p 6379 PINGCheck Redis version (determines available security features)
redis-cli -h host -p 6379 INFO server | grep redis_versionVerify bind address configuration
redis-cli -h host -p 6379 CONFIG GET bindList configured ACL users (Redis 6+)
redis-cli -h host -p 6379 ACL LISTredis-cli -h localhost -p 6379
redis-cli -h localhost -p 6379 -a password
redis-cli --tls -h host -p 6380Redis was created by Salvatore Sanfilippo in 2009. Port 6379 was chosen as it spells 'MERZ' on a phone keypad (an inside joke from an Italian pop star). Redis Labs (now Redis Inc) commercialized it. Redis 6 (2020) added ACLs and TLS. Redis 7 (2022) added Functions and improved multi-threading.
Is Redis safe without authentication on localhost?
Only if your server has no other network-accessible services with vulnerabilities. A single SSRF vulnerability in any web app on the same machine gives attackers localhost access to Redis. Always set requirepass even on localhost as defense-in-depth.
Redis vs Memcached – security differences?
Memcached has no authentication at all (by design) and no TLS support without stunnel. Redis 6+ has ACLs and native TLS. Both should be on private networks only, but Redis at least has the option to require credentials.