11211Port
TCP/UDPProtocol
memcacheIANA service nameDatabasesCategory
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)