Web & Dev
Risk: Medium
Port 11434 β Ollama AI / Local LLM Server
Port 11434 is the default API port used by Ollama to run large language models (Llama 3, Mistral, Gemma) locally on CPU and GPU.
PORT NUMBER
11434
PROTOCOL
TCP
DEFAULT PROCESS
ollama
FIREWALL TARGET
11434/tcp
Instant Terminal Fixes for Port 11434
macOS & Linux Terminal
1. Check who is listening on port 11434:
curl http://localhost:11434/api/version2. Kill process occupying port 11434 (EADDRINUSE fix):
kill -9 $(lsof -t -i:11434)3. UFW Firewall Allow rule:
sudo ufw deny 11434Windows PowerShell (Admin)
1. Check listening port:
Get-NetTCPConnection -LocalPort 114342. Force kill process on port 11434:
Stop-Process -Name "ollama app", "ollama" -Force3. Docker Port Forwarding Mapping:
docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollamaCommon Error Encountered
could not connect to ollama app on localhost:11434, is it running?
Security Advisory & Hardening
By default, Ollama binds to 127.0.0.1. Do not set OLLAMA_HOST=0.0.0.0 on an untrusted network as it has no authentication and allows downloading and running arbitrary model weights.
Frequently Asked Questions
Port 11434 Questions & Answers
Common questions regarding default services, kill commands, and firewall configurations.
Port 11434 is commonly used for Ollama AI / Local LLM Server. Port 11434 is the default API port used by Ollama to run large language models (Llama 3, Mistral, Gemma) locally on CPU and GPU.