New Tool Radar

Local Model Setup

How to Fix Ollama When Port 11434 Is Already in Use

Find which process holds port 11434, stop it or move Ollama to another port with OLLAMA_HOST, and get the server running again.

Schematic diagram with four steps: check what holds port 11434, stop the stray process or move Ollama with OLLAMA_HOST, restart the server, then confirm the version endpoint answers.

Ollama’s server listens on port 11434 by default. If another copy of Ollama — or another app — already holds that port, a new server fails to start with an address-in-use error. The fix is to find the holder and either stop it or move the new server to a different port.

Find the holder, then stop it or move ports

Check what is listening on the port: on Linux or macOS run lsof -i :11434, on Windows run netstat -ano | findstr 11434 and look up the process ID. If it is an old Ollama process, stop it and start Ollama again — the usual case is two copies running after a crash. If the port belongs to something you need, start Ollama on another port instead: OLLAMA_HOST=127.0.0.1:11435 ollama serve, and point your clients at the new port.

# find the holder
lsof -i :11434
# or on Windows: netstat -ano | findstr 11434
# move Ollama instead:
OLLAMA_HOST=127.0.0.1:11435 ollama serve
curl http://localhost:11435/api/version

Clients hard-code the port more often than you expect: a moved server means updating every app, script and browser tool that calls http://localhost:11434. Prefer stopping the stray process over moving ports when you can. If the holder is Ollama itself running as a service, use the service stop command rather than killing it.

Try it: four checks

Check What you should see If you do not see it
Holder found The command names the process on 11434 Check the port number, not the app name
Old copy stopped Stopping it frees the port Use the service stop command for a service
Server starts ollama serve starts without an address error Try again after the port is free
Version answers curl /api/version returns a version Point the check at the right port

Expected result. We checked the Ollama API reference, which lists the Version endpoint used here to confirm the server. We did not reproduce a port conflict on this machine.

Limits

This guide covers a port conflict only. A server that starts but answers nothing is a different problem. We did not test any fix ourselves.

Sources

See all