After installed ollama in ubuntu, the usual use will be fine, but when want to access it from another machine (like from your laptop to home lab server), will see
yli@yli-hx90g:~$ curl http://192.168.0.163:11434/api/generate -d '{"model": "deepseek-r1:7b", "keep_alive": -1}'
curl: (7) Failed to connect to 192.168.0.163 port 11434 after 3 ms: Connection refused