PortScan › Port guide › Port 11211
Port 11211 (Memcached): The Amplification Attack Behind a 1.3 Tbps DDoS
Port 11211 is Memcached. In 2018 amplified UDP replies from exposed servers hit GitHub with a 1.35 Tbps DDoS. No authentication, so keep it internal.
What is port 11211?
Memcached is a simple in-memory cache server widely used to reduce database load for web services. Its default port is 11211 (TCP and UDP), and it has no authentication by default (SASL requires a separate build and configuration).
When it is normally open
- A web application on the same server or internal network uses it as a cache
Risks if it is open
UDP amplification DDoS
In February 2018, GitHub was hit by a DDoS peaking at 1.35 Tbps. The attackers sent small UDP requests, spoofed with the victim's address, to Memcached servers open on the internet, so responses inflated tens of thousands of times over flooded the victim. Since then, UDP has been off by default starting with Memcached 1.5.6.
Cache data exposure and tampering
With no authentication, anyone can run stats, look up keys and change values. Altering a session cache to log in as another user is also possible.
Security checklist
- Listen locally only with
-l 127.0.0.1(the default in Debian and Ubuntu packages). - Turn off UDP:
-U 0(the default in 1.5.6 and later). - If other servers on the internal network use it, allow only their IPs in the firewall.
How to check whether port 11211 is open
Amplification attacks use UDP 11211. This scanner checks TCP only, so also check on the server with ss -ulnp | grep 11211.
From outside (is it exposed to the internet?)
Whether your server or home router accepts port 11211 from the internet can only be confirmed by connecting from outside. A check from inside the same network bypasses the router's firewall and gives a different answer.
PortScan opens a real TCP connection from the Cloudflare edge and reports Open, Closed or Filtered. Members can scan every port on their own IP for free and other targets free once a day.
Check port 11211On the server (what is listening?)
Windows (PowerShell):
netstat -ano | findstr ":11211 "
Get-NetTCPConnection -LocalPort 11211 -State Listen | Select LocalAddress,OwningProcess
Linux:
sudo ss -tlnp | grep ':11211 '
If it listens on 0.0.0.0 or [::] it is open on every network; 127.0.0.1 means only that machine can connect. To test port 11211 on a server from another computer, use Test-NetConnection server-address -Port 11211 on Windows or nc -vz server-address 11211 on Linux and macOS.
How to close or restrict port 11211
The best fix is to turn the service off or make it listen only on 127.0.0.1 (see the checklist above). If you need the service but must keep it off the internet, use a firewall.
Windows Firewall
# Administrator PowerShell
New-NetFirewallRule -DisplayName "Block TCP 11211" -Direction Inbound -Protocol TCP -LocalPort 11211 -Action Block
# To allow a single IP instead (block rules take precedence, so use this instead of the rule above)
New-NetFirewallRule -DisplayName "Allow TCP 11211 from office" -Direction Inbound -Protocol TCP -LocalPort 11211 -RemoteAddress 203.0.113.10 -Action Allow
Linux (ufw)
sudo ufw deny 11211/tcp
# Allow a single IP only
sudo ufw allow from 203.0.113.10 to any port 11211 proto tcp
On a cloud server, also check port 11211 in the security group (inbound rules), which is separate from the OS firewall. For services running in Docker, the rules Docker creates can bypass ufw, so binding the port to localhost with -p 127.0.0.1:11211:11211 is the reliable option.
Router
At home or in a small office, open the router's admin page and check whether port 11211 is in the port forwarding list, whether DMZ is enabled, and whether any program opened ports by itself through UPnP. If any of the three applies, port 11211 on your PC is directly visible from the internet.
How to read the scan result
- Open — something accepted a connection on port 11211. Work through the risks above.
- Closed — the packet reached the device, but nothing is listening on that port, so it was refused immediately (RST). The service is off.
- Filtered — no response. A firewall or the ISP is dropping packets, or the device is off. From an exposure point of view this is the safest state.
The verdict can depend on where you connect from. Many ISPs (including most Korean ISPs) block some ports such as 135, 139 and 445 on their network, so the same server can look Filtered from inside that network and Closed from abroad.
FAQ
- Does PortScan check UDP 11211 too?
- No. This scanner looks at TCP only. If TCP 11211 is open, UDP is likely open as well, so check the server configuration directly.
Related ports
Last updated 2026-11-04 · Use this guide to check systems you manage. Scanning systems without permission may carry legal liability.