Ollama remote connection

20. septembris, 2025

How to allow remote connections to ollama

Create directory

Bash
/etc/systemd/system/ollama.service.d

Create file override.conf and put this content

Bash
/etc/systemd/system/ollama.service.d/override.conf
[Service]
Environment="OLLAMA_HOST=0.0.0.0"

Restart ollama