ollama-app
ollama-app copied to clipboard
Connects on PC but not in Android
Requirements
- [X] I have searched the issues of this repository and believe that this is not a duplicate
- [X] I have confirmed this bug exists on the latest version of the app
Platform
Android
Description
I was able to conect in my LAN server on PC but not in Android
Steps to reproduce
- Added my LAN IP
- Keeps looping to connect
Expected behavior
Work
Actual behavior
Keeps connecting
Screenshots or additional context
Did you set OLLAMA_HOST described in this wiki article?
Yep
Same problem
same problem, maybe the cause of SSL certificate?
I have test this issue, it is the SSL issue. First version, my ollama proxy via a host with directly using IP address and SSL certificate is about IP address. As we know , lots of device would not count it as a secure connection. Then i add a domain for my server, and add a SSL for the domain. Then it worked, the APP connect my server. I guess the cause is about validate the host by system call, and it trigers the secure policy and reject the connection somehow.
Probably there are two solution, add validation SSL for your server or change the validation call by some insecure way? LIKE curl with parameter -k.
Yep
@hellomynameisnoone for me this worked: sudo ufw allow 11434
It was because of the firewall