localhost:11434 (Ollama): not working and fixes
Port 11434 is Ollama’s local API for running AI models. How to check it, start it and fix connection errors.
Open this address: http://localhost:11434This opens on your own computer. It only works if the program is running.
localhost:11434 is the local API for Ollama, which runs AI models on your own computer. It is meant for programs, so the browser shows only a short status message.
What runs on localhost:11434
- Ollama, the local AI model server. This is an API, not a web page.
Commands to start and test port 11434
ollama serveollama run llama3.2curl http://localhost:11434curl http://localhost:11434/api/tagsFind what is using port 11434
Run these in a terminal on your computer. Nothing is sent to this site.
If localhost:11434 will not open
- Other computers, containers or Open WebUI cannot connect
- Ollama listens on 127.0.0.1:11434 by default. Ollama’s FAQ sets
OLLAMA_HOST=0.0.0.0:11434like this: on macOS runlaunchctl setenv OLLAMA_HOST "0.0.0.0:11434"and restart the app; on Linux runsystemctl edit ollama.service, addEnvironment="OLLAMA_HOST=0.0.0.0:11434"under [Service], thensystemctl daemon-reloadandsystemctl restart ollama; on Windows quit Ollama, add OLLAMA_HOST in “Edit environment variables for your account”, and start Ollama again. In Docker, a web UI must callhttp://host.docker.internal:11434, not localhost. - A web page or browser extension is blocked (CORS)
- Ollama accepts requests from 127.0.0.1 and 0.0.0.0 origins by default. Add more with
OLLAMA_ORIGINS, for exampleOLLAMA_ORIGINS=chrome-extension://*,moz-extension://*,safari-web-extension://* ollama serve. - Model downloads fail behind a proxy
- Ollama’s FAQ says to set
HTTPS_PROXYfor model pulls, and advises against setting HTTP_PROXY because it can break the connections from your own clients. - The first answer is slow, or memory stays used
- Models stay loaded for 5 minutes by default. Set
OLLAMA_KEEP_ALIVE(for example 10m, or 0 to unload at once).ollama pslists the models in memory andollama stop MODELunloads one. - Where are the models stored?
- Default:
~/.ollama/modelson macOS,/usr/share/ollama/.ollama/modelson Linux, andC:\Users\%username%\.ollama\modelson Windows. Change it withOLLAMA_MODELS. On Linux with the standard installer, give the ollama user access withsudo chown -R ollama:ollama FOLDER. - Browser shows only “Ollama is running”
- That is correct. Port 11434 is an API. Use the Ollama app, the terminal, or a web UI that connects to it.
- connection refused
- Ollama is not running. Open the Ollama app or run
ollama serve. - Docker cannot reach Ollama
- Inside a container, use host.docker.internal:11434 instead of localhost.
- Another device cannot connect
- Start Ollama with
OLLAMA_HOST=0.0.0.0:11434and allow the port in your firewall.
Other ports like 11434
| Port | Usually used by |
|---|---|
| localhost:5601 | Kibana |
| localhost:11501 | Khajane 2 helper (reported) |
| localhost:9200 | Elasticsearch |
| localhost:5672 | RabbitMQ |
| localhost:15672 | RabbitMQ admin page |
| localhost:9090 | Prometheus |
| localhost:9229 | Node.js debugger |
Questions about localhost:11434
- What is localhost:11434?
- The local API of Ollama, used to run AI models on your computer. It is not a web page.
- How do I check that Ollama is running?
- Run curl http://localhost:11434. The reply "Ollama is running" means it is.
- Is localhost:11434 safe?
- Yes while it stays on localhost. Tools like this often show sensitive data, so keep them off the public internet and put a login in front of them if other people can reach the port.