enchanted icon indicating copy to clipboard operation
enchanted copied to clipboard

No response from http://IP:11434

Open include opened this issue 1 year ago • 3 comments
trafficstars

Hi,

I am running ollama with a couple models in a small box. Enchanted MacOS is able to use it without issues but my iOS can't. It says "ollama is unreachable..." but the setting are the same. What might be the issue?

Thanks in advance and thanks for this great app 🫶

include avatar Jun 15 '24 12:06 include

Hi @include to access Ollama on your phone you need to have an external IP address since Ollama is not running on your phone. One of the proposals in the README is to use ngrok to expose your ollama server though the internet. Have you tried it?

gluonfield avatar Jun 19 '24 23:06 gluonfield

Hi @AugustDev thansk for your reply. in fact I've testes ngrok successfully but, my phone is using my wifi at home, the same network where I am running ollama. I think it shoulded work as other applications work. Could it be some strange bug?

include avatar Jun 23 '24 15:06 include

The Ollama Mac app needs to be launched such that it permits network access outside of localhost. Quit Ollama first, then launch with:

OLLAMA_HOST=0.0.0.0 open /Applications/Ollama.app

Then, in the Enchanted settings on your iOS device, <ip address>:11434 should now work. Also, this URL can be used for testing. If Ollama was launched successfully, you should get the response "Ollama is running" from:

http://<ip address>:11434

Good luck!

ctuft avatar Aug 19 '24 21:08 ctuft