n4ze3m / page-assist

Use your locally running AI models to assist you in your web browsing
https://chromewebstore.google.com/detail/page-assist-a-web-ui-for/jfgfiigpkhlkbnfnbobbkinehhfdhndo
MIT License
1.5k stars 144 forks source link

Cant connect to LAN server #240

Open makedir opened 2 hours ago

makedir commented 2 hours ago

The addon wont connect to Ollama running on another PC in my lan. Locally 127.0.0.1 it works fine, but not form other PCs in the same LAN.

http://127.0.0.1:11434 + page-assist on same PC = working other pc in same LAN, setting to http://192.168.8.12:11434 = not working

grafik

grafik

It seems Ollama is configured by default to just allow local access to 127.0.0.1 but not binding on lan adapter. Why isnt this in the howto or mentioned anywhere in your addon and how to solve it?

makedir commented 2 hours ago

Update:

You need to add this:

https://github.com/ollama/ollama/blob/56318fb365be38253fc9abeeabc850d01be2521a/docs/faq.md#how-do-i-configure-ollama-server

OLLAMA_HOST=0.0.0.0

grafik

Maybe you should add this to https://github.com/n4ze3m/page-assist/blob/main/docs/connection-issue.md