Ollama uses port 11434 for its local API
When Ollama starts on Windows, it binds to localhost:11434 and listens for HTTP requests. This is the local API that you (or any compatible app) use to send prompts and receive responses. The port is only accessible on your own machine — it is not exposed to the internet or your local network by default.
You can verify Ollama is running by visiting http://localhost:11434 in a browser or running curl http://localhost:11434 in a terminal. You should see the text Ollama is running.
Fix "port 11434 already in use"
This error means another process is already using port 11434 when Ollama tries to start. Most commonly it is a previous Ollama instance that did not shut down cleanly.
- 1
Find which process is using the port
C:\> netstat -ano | findstr 11434TCP 127.0.0.1:11434 0.0.0.0:0 LISTENING 8472# The last number (8472) is the PID - 2
Identify the process by PID
C:\> tasklist | findstr 8472ollama.exe 8472 Console 1 45,320 K# It is a previous Ollama instance - 3
Stop the process
If it is an Ollama process: right-click the Ollama system tray icon → Quit Ollama. Or force-kill by PID:
C:\> taskkill /PID 8472 /FSUCCESS: The process with PID 8472 has been terminated. - 4
Restart Ollama
Start Ollama from the Start menu. Verify the port is now available:
C:\> curl http://localhost:11434Ollama is running
Use a different port
If port 11434 is permanently used by another application on your system, you can configure Ollama to use a different port via the OLLAMA_HOST environment variable:
To make it permanent, add OLLAMA_HOST as a System environment variable with value 127.0.0.1:11435 via Settings → System → Advanced system settings → Environment Variables.
localhost:11434 must also be updated to use the new port.Expose Ollama to your local network
By default Ollama only listens on 127.0.0.1 (localhost). To allow other devices on your LAN to connect — for example, a phone running a chat app against your PC:
Other devices on your LAN can then connect to http://YOUR-PC-IP:11434.
Allow apps to reach Ollama through Windows Firewall
When Ollama starts for the first time, Windows Firewall may prompt you to allow connections. Click Allow access for private networks. If you missed this prompt or accidentally blocked it:
Port 11434 questions
Is port 11434 exposed to the internet?
127.0.0.1 (localhost), which is only accessible from your own machine. It is not reachable from the internet or your local network unless you explicitly set OLLAMA_HOST=0.0.0.0.Another Ollama is already running — how do I know?
curl http://localhost:11434 — "Ollama is running" confirms it is active.ollama serve: listen tcp: bind: address already in use
ollama serve manually — the service starts automatically. Just use ollama run or ollama pull directly.