Home / Localhost / localhost:6379

localhost:6379: Redis connection fixes

Port 6379 is Redis’s default port. Check it with redis-cli ping and fix connection refused, NOAUTH and protected mode errors.

Not a web pagePort 6379 belongs to Redis. Use redis-cli or your app, not a browser.

localhost:6379 is where Redis listens by default. A reply of PONG to the ping command means it is working.

A database client connects to localhost:6379, which is port 6379 on your computer, where Redis is running

What runs on localhost:6379

Commands to start and test port 6379

Check it with redis-cli (should print PONG)
redis-cli -h 127.0.0.1 -p 6379 ping
Start it (Linux)
sudo systemctl start redis
Start it directly
redis-server
Docker: run a test instance
docker run -p 6379:6379 redis:7

Find what is using port 6379

Run these in a terminal on your computer. Nothing is sent to this site.

If localhost:6379 will not open

Redis is reachable from the network without a password
Redis’s security docs: since 3.2.0, Redis runs in protected mode when it uses the default configuration without a password, and then answers only loopback clients. Passwords can be set with ACLs (Redis 6 and newer, recommended) or requirepass. Redis warns that an exposed port lets an attacker run FLUSHALL and delete all data, so firewall it.
Could not connect to Redis: Connection refused
Redis is not running. Start it, then run ping again.
NOAUTH Authentication required
The server has a password. Use redis-cli -a yourpassword or set it in your app’s connection string.
DENIED Redis is running in protected mode
Redis refuses outside connections without a password. Keep it on localhost, or set a password and bind carefully.
Windows
Redis has no official Windows build. Use WSL or Docker.

Other ports like 6379

PortUsually used by
localhost:3306MySQL, MariaDB
localhost:5432PostgreSQL
localhost:27017MongoDB
localhost:11211Memcached
localhost:1433Microsoft SQL Server
localhost:5984CouchDB
localhost:8983Apache Solr

Questions about localhost:6379

What does PONG mean?
Redis is running and answered your ping.
Is it safe to expose port 6379?
No. Keep Redis private. An open Redis server without a password can be abused.
Is localhost:6379 safe?
Yes while it listens only on 127.0.0.1. If you open this port to a network, use a strong password, allow only trusted addresses in the firewall, and encrypt the connection. Do not expose a database port to the internet.

Updated 2026-10-20

Free tools that help

Related pages