Port 11211: Memcached

Port 11211 (TCP/UDP) is used by Memcached. Memcached cache server. Public UDP 11211 enabled record-breaking amplification attacks in 2018.

11211Port
TCP/UDPProtocol
memcacheIANA service name
DatabasesCategory

Port range

11211 is a registered port (range 1024–49151). Any user can bind to it; IANA records which service registered the number.

Security

Port 11211 should not be reachable from the public internet. Restrict it to trusted networks or a VPN, and scan your public IP to confirm it is closed.

Open port 11211 in a firewall

ufw         sudo ufw allow 11211/tcp
            sudo ufw allow 11211/udp
iptables    sudo iptables -A INPUT -p tcp --dport 11211 -j ACCEPT
            sudo iptables -A INPUT -p udp --dport 11211 -j ACCEPT
firewalld   sudo firewall-cmd --permanent --add-port=11211/tcp
            sudo firewall-cmd --permanent --add-port=11211/udp
Windows     New-NetFirewallRule -DisplayName "Memcached 11211" -Direction Inbound -Protocol TCP -LocalPort 11211 -Action Allow

Check if port 11211 is open

nc -vz example.com 11211
Test-NetConnection example.com -Port 11211   # PowerShell
sudo ss -tulpn | grep ':11211 '   # what is listening locally (Linux)

Other databases ports

Frequently asked questions

What is port 11211 used for?
Memcached. Memcached cache server. Public UDP 11211 enabled record-breaking amplification attacks in 2018.
Is port 11211 TCP or UDP?
Both are assigned. Check which one your software actually listens on.