Port 6379: Redis
TCP 6379 is the port for Redis. Never on the internet. Bind to localhost or a private network and set a password / ACL.
| Service | Redis |
|---|---|
| Protocol | TCP |
| Exposure risk | High: do not expose to the internet |
| Range | Registered (1024–49151) |
What port 6379 does
The default port for Redis. Older Redis versions accepted unauthenticated connections from anywhere, and exposed instances are routinely hijacked for crypto-mining.
Should port 6379 be open?
Never on the internet. Bind to localhost or a private network and set a password / ACL.
Find what's listening on port 6379
- Linux:
sudo ss -tulpn | grep :6379 - macOS:
sudo lsof -nP -i :6379 - Windows:
netstat -ano | findstr :6379, then look up the PID in Task Manager.
Open or block it in a firewall
- ufw:
sudo ufw allow 6379/tcp(ordeny) - firewalld:
sudo firewall-cmd --add-port=6379/tcp --permanent && sudo firewall-cmd --reload - Windows:
New-NetFirewallRule -DisplayName "Port 6379" -Direction Inbound -Protocol TCP -LocalPort 6379 -Action Allow
Port assignment per the IANA Service Name and Transport Protocol Port Number Registry. Test several ports at once with the port scanner, or any port with the open port checker.
Questions about port 6379
What is port 6379 used for?
Redis. The default port for Redis. Older Redis versions accepted unauthenticated connections from anywhere, and exposed instances are routinely hijacked for crypto-mining.
Is port 6379 TCP or UDP?
TCP. Redis uses TCP port 6379.
Is it safe to open port 6379?
High: do not expose to the internet. Never on the internet. Bind to localhost or a private network and set a password / ACL.
How do I check if port 6379 is open?
Use the checker on this page: it connects to your host on TCP 6379 from the internet. Locally, run
nc -vz host 6379 (macOS/Linux) or Test-NetConnection host -Port 6379 (PowerShell). To see what is listening on your own machine, run ss -tulpn | grep :6379 (Linux) or netstat -ano | findstr :6379 (Windows).