Ollama Integration ‘unknown error’ help

To anyone who can assist me thoroughly with Ollama Integration in Home Assistant. I’m running HA on my PC with Oracle VirtualBox. I have muddled my way through every hurdle so far except for configuring Ollama. When entering the URL when integrating Ollama I keep getting an “unexpected error” no matter all resolutions I’ve tried…

1st, I don’t access HA through localhost, I have to use the IP address. I was able to use localhost originally, but something changed when switching Setup for 2nd router as AP and moving all my devices to IoT including the PC.

Anyways, I see “ollama is running” in the browser when I enter 127.0.0.1:11434.
I have set my environment in system.cpl to var OLLAMA_HOST val 0.0.0.0:11434 with no success.

I have also tried environment set to 127.0.0.1:11434, and even “HA IPAddress”:11434.

I have tried the OLLAMA URL integration with 0.0.0.0:11434, 127.0.0.1:11434, and nd even “HA IPAddress”:11434.

I tried using Gitbash for environment=“OLLAMA_HOST=0.0.0.0”.

I port forwarded 11434

I allowed Ollama app for my Public and Private network

I even completely turned off my firewall. and nothing has worked yet.

Can someone please walk me through what I am missing and please be patient with me as I kind of know what I’m doing, but I don’t, if you know what I mean…

Also having the same problem. Have looked endlessly for a solution to this issue and last stop was this post, so hopefully my reply will bump this up to others in the ‘know’.

Edit: SOLUTION - I have managed to resolve the issue - My Ollama server is on my Windows 11 PC, so I right clicked the Ollama app in the bottom right of the screen and hit settings. Then hit the slider to ‘Expose Ollama to the network’ and now the Home Assistant integration is accepted. You may need to cahnge ‘localhost’ to your actual PC’s IP address, like I did.