PortChecker Logo
PortChecker

Port 6379 — Redis (TCP)

Redis

What is Port 6379?

Nøkkel‑verdi‑database. Bør aldri eksponeres offentlig.

This is a registered port (1024–49151) often assigned to vendor or application services like Redis.  ·  No formal RFC; Redis RESP protocol

When do you need Port 6379 open?

Almost never open to the internet. Redis has no authentication enabled by default and is frequently exploited when publicly exposed. Bind to 127.0.0.1 or restrict with firewall rules to trusted internal IPs only.

Common uses and software

  • Redis Community Edition
  • Redis Enterprise
  • Valkey
  • Upstash Redis
  • AWS ElastiCache
  • StackExchange.Redis
  • Sidekiq (Ruby background jobs)

Security

Set bind 127.0.0.1 and requirepass in redis.conf. Enable protected-mode yes (default since Redis 3.2). Never expose port 6379 to the internet — there have been mass exploitation waves targeting open Redis instances for cryptomining and data theft. Use a VPN or SSH tunnel for remote access to Redis. Upgrade to Redis 6+ which supports ACL-based access control.

Is Port 6379 safe?

An open port increases your attack surface. Safety depends on how Redis is configured.

Low risk

Low risk, but confirm that Redis on this port is intentionally running and required by your application before leaving it open.

Check Port 6379 now

Test connectivity for Port 6379 on any host.

1-65535

How to Open Port 6379

To allow incoming connections to Port 6379 (Redis) from outside your network, configure your firewall and add a port forwarding rule on your router pointing to your device's local IP address.

Windows Firewall

Open Windows Defender Firewall → Advanced Settings → Inbound Rules → New Rule → Port → TCP → Specific local ports: 6379 → Allow the connection → Name and save the rule.

netsh advfirewall firewall add rule name="Open Port 6379" dir=in action=allow protocol=tcp localport=6379
Linux (UFW / iptables)sudo ufw allow 6379/tcpsudo iptables -A INPUT -p tcp --dport 6379 -j ACCEPT
Router

Log into your router (192.168.1.1 or 192.168.0.1) → Port Forwarding → Add a new rule: Protocol TCP, External port 6379, Internal IP: your device's local IP, Internal port 6379 → Save.

How to close Port 6379

If you do not need Redis, block this port in your firewall or router.

Windows Firewall

To block port 6379 on Windows, run the following command in PowerShell or Command Prompt (as Administrator):

netsh advfirewall firewall add rule name="Block Port 6379" dir=in action=block protocol=tcp localport=6379
Linux (UFW / iptables)sudo ufw deny 6379/tcpsudo iptables -A INPUT -p tcp --dport 6379 -j DROP
Router

Remove or disable any port forwarding rule for Port 6379.

Frequently Asked Questions

What is Port 6379 used for?▾

Port 6379 is the default TCP port for Redis. It is used by servers and applications that need to accept incoming connections for this service. Whether you need it open depends on whether you are actively running a Redis server — if not, it should remain closed to reduce your attack surface.

Is Port 6379 safe to keep open?▾

An open Port 6379 increases your attack surface. If you are not actively running Redis, close this port in your firewall and remove any port forwarding rules. If Redis must be accessible, restrict access to known IP ranges, keep the service software updated with security patches, and use strong authentication.