Open /etc/systemd/system/ollama.service
Add a new environment variable as below.
...
[Service]
...
Environment="OLLAMA_HOST=0.0.0.0:11434
After editing the unit file, run
sudo systemctl daemon-reload
and
sudo systemctl restart ollama.service
in that order.