RUNLOCALAIv38
->Will it run?Best GPUCompareTroubleshootStartLearnPulseModelsHardwareToolsBench
Run check
RUNLOCALAI

Independently operated catalog for local-AI hardware and software. Hand-written verdicts. Source-cited claims. Reproducible commands when we have them.

OP·Fredoline Eruo
DIR
  • Models
  • Hardware
  • Tools
  • Benchmarks
TOOLS
  • Will it run?
  • Compare hardware
  • Cost vs cloud
  • Choose my GPU
  • Prompting kits
  • Quick answers
REF
  • All buyer guides
  • Learn local AI
  • Methodology
  • Glossary
  • Errors KB
  • Trust
EDITOR
  • About
  • Author
  • How we make money
  • Editorial policy
  • Contact
LEGAL
  • Privacy
  • Terms
  • Sitemap
MAIL · MONTHLY DIGEST
Get monthly local AI changes
Monthly recap. No spam.
DISCLOSURE

Some links on this site are affiliate links (Amazon Associates and other first-class retailers). When you buy through them, we earn a small commission at no extra cost to you. Affiliate links do not influence our verdicts — there are cards we rate highly that we don't have affiliate relationships with, and cards that sell well that we refuse to recommend. Read more →

© 2026 runlocalai.coIndependently operated
RUNLOCALAI · v38
Errors / Configuration / Ollama: connection refused on localhost:11434
Configuration
Verified by owner

Ollama: connection refused on localhost:11434

Error: connect ECONNREFUSED 127.0.0.1:11434
By Fredoline Eruo · Last verified Jun 12, 2026

Cause

Your client (curl, an SDK, or another tool) is trying to reach the Ollama HTTP server at port 11434 but Ollama isn't running there. Common causes:

  • ollama serve was never started (most common on Linux without the systemd service)
  • Ollama is running but bound to a different host/port (e.g., OLLAMA_HOST=0.0.0.0 for remote access)
  • Firewall blocking localhost (rare but happens with overzealous corp security)

Solution

Start Ollama:

# macOS / Linux foreground
ollama serve
# In another terminal, verify:
curl http://localhost:11434/api/tags

Linux (run as a service):

sudo systemctl start ollama
sudo systemctl enable ollama  # auto-start on boot

Windows: The Ollama installer registers a Windows service that should auto-start. Check Services (services.msc) for "Ollama" — set it to Automatic.

If running on a non-default port, point your client there:

export OLLAMA_HOST=http://localhost:11500
# Or in your code, set the base URL explicitly

If running in Docker, make sure the port is published:

docker run -d -p 11434:11434 --name ollama ollama/ollama

Related errors

  • Ollama: Error: model 'X' not found
  • Ollama: bind: address already in use (port 11434)
  • Ollama truncates input — default context length is only 2048
  • Token generation slows as conversation gets longer
  • Slow tokens/sec on capable GPU (silent CPU fallback)

Did this fix it?

If your case was different, email Contact support with what you saw and we'll update the page. If it worked but took different commands on your platform, we want to know that too.