khoj-ai / khoj

Your AI second brain. Get answers to your questions, whether they be online or in your own notes. Use online AI models (e.g gpt4) or private, local LLMs (e.g llama3). Self-host locally or use our cloud instance. Access from Obsidian, Emacs, Desktop app, Web or Whatsapp.
https://khoj.dev
GNU Affero General Public License v3.0
12.64k stars 640 forks source link

Not available over network #431

Closed jenkshields closed 1 year ago

jenkshields commented 1 year ago

Kia ora! I've just got Khoj set up on my home desktop and it's running fine there, but I'm having trouble accessing it from other devices. I have tailscale set up and my other services (*arr apps, mostly) are available over tailscale, but :42110 just times out, both through tailscale and directly over my local network.

Firewall is disabled, so I'm not sure what's blocking this connection!

Windows 11, attempting connection on iOS.

Edit: I think this is because Khoj is bound to localhost - I also can't access it via the computer's local ip on the computer itself. But I can't find where to change this!

debanjum commented 1 year ago

Great to know Khoj is running fine on your desktop!

Edit: I think this is because Khoj is bound to localhost - I also can't access it via the computer's local ip on the computer itself. But I can't find where to change this!

Yes, to make khoj accessible over tailscale you'll need to expose it on your desktop's tailscale I.P by starting it from the terminal with

 khoj --host <tailscale-ip-of-your-desktop>

You should then be able to access khoj from you iphone by opening http://<tailscale-ip-of-your-desktop>:42110 in your iphone web browser

debanjum commented 1 year ago

Marking this issue as resolved. Please feel free to re-open if you're still not able to access your Khoj over the network.