Comment on Frustratingly bad at self hosting. Can someone help me access LLMs on my rig from my phone
hedgehog@ttrpg.network 20 hours ago
What OS is your server running? Do you have an Android phone or an iPhone?
In either case all you likely need to do is expose the port and then access your server by IP on that port with an appropriate client.
In Ollama you can expose the port to your local network by changing the bind address from 127.0.0.1 to 0.0.0.0
Regarding clients: on iOS you can use Enchanted or Apollo to connect to Ollama.
On Android there are likely comparable apps.
BlackSnack@lemmy.zip 20 hours ago
Sever is my rig which is running windows. Phone is iPhone.
Exposing the port is something I’ve tried to do in the past with no success! When you say, change the bind address, do I do that in the windows defender firewall in the inbound rules section?
hedgehog@ttrpg.network 6 hours ago
I believe you set env vars on Windows through System Properties -> Advanced -> Environment Variables.
hedgehog@ttrpg.network 18 hours ago
I believe you just need to set the env var
OLLAMA_HOST
to0.0.0.0:11434
and then restart Ollama.Bane_Killgrind@lemmy.dbzer0.com 16 hours ago
Env var means “environment variable”, which is information that’s available to all programs you run.
In Linux these are used to set path info for your package manager, shell preferences, a bunch of stuff.
In Windows it’s the same. You need to look up how to set env vars in Windows
github.com/ollama/ollama/issues/703
mierdabird@lemmy.dbzer0.com 19 hours ago
When on your wifi, try navigating in your browser to your windows computer’s address with a colon and the port 11434 at the end. Would look something like this:
192.168.xx.xx:11434
If it works your browser will just load the text: Ollama is running
From there you just need to figure out how you want to interact with it. I personally pair it with OpenWebUI for the web interface