The message
Error: listen tcp 127.0.0.1:11434: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
Affects: Ollama
Why is this happening?
On Windows and macOS, the Ollama app in the system tray starts the server automatically in the background. If you also type ollama serve, you try to start a second server on the same port. On Linux, after installation Ollama usually runs as a system service and occupies the port as well.
How to fix it
- Check whether Ollama is already running: Open
http://127.0.0.1:11434in your browser. If it says “Ollama is running”, everything is fine and you don’t needollama serveat all. Just useollama run <modellname>. - If you want to start the server yourself in the terminal on purpose, for example with an error log, first quit the app: Right-click the Ollama icon in the taskbar → Quit Ollama. Then run
$env:OLLAMA_DEBUG="1"; ollama servein PowerShell (in Command Prompt:set OLLAMA_DEBUG=1and thenollama serve). - If no Ollama is running and the error remains, find out which program is using the port:
netstat -ano | findstr :11434shows the process ID (last column),tasklist /FI "PID eq 1234"shows the program name (replace 1234 with the number you found). - Linux: Stop the service with
sudo systemctl stop ollamabefore you startollama servemanually. - If you really need a different port, set the environment variable
OLLAMA_HOST(for example127.0.0.1:11500) and restart Ollama. Remember to also change the address in Open WebUI and other programs.
Better not: Don’t randomly kill processes in Task Manager before you know which program is using the port.
Set up from scratch again
If it still doesn’t work after that, a fresh setup step by step often helps:
- Your own ChatGPT with Ollama and Open WebUI
Run a language model locally on Windows - with the Ollama app, suitable models for 8 to 24 GB, context length, command line, and Open WebUI…
Terms for this
Similar errors
- Open WebUI or AnythingLLM can't find Ollama
- Ollama: could not connect to ollama app, is it running? (Ollama server is not running or can’t be reached)
- Ollama: max retries exceeded during download (ollama pull aborts)
- Ollama: something went wrong, please see the ollama server logs for details (command doesn't get a usable response from the server)
- Model forgets the beginning or ignores long texts (context length too small)
Sources
- https://github.com/ollama/ollama/issues/707
- https://docs.ollama.com/troubleshooting
- https://docs.ollama.com/faq
- https://docs.anythingllm.com/ollama-connection-troubleshooting
Checked on Oct 21, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.