Qdrant Connection Refused (localhost:6333 / Docker)

Share
Ongoing Docker, Linux, macOS, Windows Updated November 14, 2026Based on 4 user reportsHow we research

Quick answer

Connection refused usually means the container is not running, the ports are not published, or your app uses the wrong host. Check the health endpoint, publish 6333 and 6334, and use the service name inside Docker Compose.

Most likely fix: Check Qdrant is up

How to fix it

Try these in order — the most common fix is first.

  1. 1. Check Qdrant is up

    1. Run docker ps and look for the qdrant container
    2. Run curl http://localhost:6333/healthz
    3. Read docker logs <container> for startup panics
    Did this fix it?
  2. 2. Publish both ports

    1. Start with docker run -p 6333:6333 -p 6334:6334 qdrant/qdrant
    2. In Compose, add both ports mappings
    Did this fix it?
  3. 3. Fix the hostname

    1. Inside Docker Compose use http://qdrant:6333, not localhost
    2. On Mac/Windows try 127.0.0.1 instead of localhost
    Did this fix it?
  4. 4. Force REST or raise the timeout

    1. QdrantClient(url=..., prefer_grpc=False)
    2. QdrantClient(..., timeout=60) for slow operations
    Did this fix it?

Symptoms

Python client or curl fails with "connection refused" or a timeout when connecting to Qdrant on localhost:6333.

Why it happens

  • Container not running or crashed on startup
  • Port 6333 (REST) or 6334 (gRPC) not published with -p
  • App running in another container using localhost instead of the Qdrant service name
  • Client using gRPC (port 6334) while only 6333 is open
  • Large existing dataset delaying startup by tens of seconds

This guide also covers

  • qdrant connection refused
  • qdrant docker connection refused localhost 6333
  • qdrant timeout python client

Still not working?

If Qdrant keeps failing, you're not alone. See every Qdrant problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us
Fixed it? Share this guide

The same problem in other apps

All not loading, error messages & connection guides →

Other Qdrant errors