Home / Localhost / localhost:11211

localhost:11211: Memcached connection fixes

Port 11211 is Memcached’s default. Start it, test it with stats and fix connection refused errors.

A database client connects to localhost:11211, which is port 11211 on your computer, where Memcached is running

Not a web pagePort 11211 belongs to Memcached. Use your app or the nc command, not a browser.

localhost:11211 is where Memcached listens. It speaks its own protocol, so a browser shows nothing useful.

What runs on localhost:11211

Commands to start and test port 11211

Start it with 64 MB
memcached -p 11211 -m 64 -l 127.0.0.1
Test it (Linux/macOS, nc installed)
printf "stats\r\n" | nc localhost 11211
Docker
docker run -p 11211:11211 memcached

Find what is using port 11211

Run these in a terminal on your computer. Nothing is sent to this site.

If localhost:11211 will not open

Connection refused
Memcached is not running. Start the service or the container.
Do not expose it
Bind it to 127.0.0.1. An open Memcached server can be abused from the internet.
Port 11211 is in use
Another instance is running. Find it with the tool below.

Other ports like 11211

PortUsually used by
localhost:3306MySQL, MariaDB
localhost:5432PostgreSQL
localhost:27017MongoDB
localhost:6379Redis
localhost:1433Microsoft SQL Server
localhost:5984CouchDB
localhost:8983Apache Solr

Questions about localhost:11211

What is port 11211?
The default port of Memcached.
Is it safe to open 11211 to the internet?
No. Keep it on localhost or inside a private network.
Is localhost:11211 safe?
Yes while it listens only on 127.0.0.1. If you open this port to a network, use a strong password, allow only trusted addresses in the firewall, and encrypt the connection. Do not expose a database port to the internet.
Can I use a different port instead of 11211?
Yes. Pick a free port above 1024, set it in the program, and open that number instead. If other programs connect to this port, change it there as well.
How do I check what is using port 11211?
Use the port checker on this page. It shows the command for Windows, macOS and Linux and does not send anything to this site.

Updated 2026-10-03

Free tools that help

Related pages