ollama-app icon indicating copy to clipboard operation
ollama-app copied to clipboard

Connects on PC but not in Android

Open hellomynameisnoone opened this issue 1 year ago • 5 comments

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

  1. Added my LAN IP
  2. Keeps looping to connect

Expected behavior

Work

Actual behavior

Keeps connecting

Screenshots or additional context

Screenshot_20241108-173839_Ollama

hellomynameisnoone avatar Nov 08 '24 16:11 hellomynameisnoone

Did you set OLLAMA_HOST described in this wiki article?

JHubi1 avatar Nov 08 '24 16:11 JHubi1

Yep

Screenshot_20241108-175635_Firefox

hellomynameisnoone avatar Nov 08 '24 16:11 hellomynameisnoone

Same problem

FUsIon80 avatar Nov 14 '24 17:11 FUsIon80

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.

hookery avatar Nov 21 '24 02:11 hookery

Yep

Screenshot_20241108-175635_Firefox

@hellomynameisnoone for me this worked: sudo ufw allow 11434

It was because of the firewall

Maxitendo1 avatar Jan 24 '25 11:01 Maxitendo1