JHubi1 / ollama-app

A modern and easy-to-use client for Ollama
Apache License 2.0
241 stars 17 forks source link

Issues connecting #5

Closed almostserious closed 4 weeks ago

almostserious commented 4 weeks ago

Might be just my issue, and im missing smth obvious but i simply cannot connect to the host. Im using the ollama docker and have forwarded the port 0.0.0.0:11434 -> 11434/tcp so it listens on the host. But whatever I do i cannot get the host to connect. Any pointers on what i am doing wrong? Would love to give this app a try vs the openwebui.

JHubi1 commented 4 weeks ago

Hi there. Ollama restricts the hosts that can connect by default. As discussed in this Ollama issue, you have to set the environment variable OLLAMA_HOST to 0.0.0.0 or use something like a tunneling software.

almostserious commented 4 weeks ago

Thanks i saw this but the original fix for docker didnt work for me. Setting the Environmental Variable did work though, thanks. In case somebody else looking what to add to docker run command: -e OLLAMA HOST="0.0.0.0"

JHubi1 commented 4 weeks ago

I'll mark this as close. If you have any other issues, feel free to open another issue. If you have further questions on this one, you can reopen it.