If installing ollama via brew, to expose Ollama on all interfaces (i.e. 0.0.0.0) for use with a remote application, modify the service file to include an OLLAMA_HOST key in the EnvironmentVariables in /opt/homebrew/Cellar/ollama/{version}/homebrew.mxcl.ollama.plist:
<plist version="1.0">
<dict>
<key>EnvironmentVariables</key>
<dict>
OLLAMA_FLASH_ATTENTION