JHubi1 / ollama-app

A modern and easy-to-use client for Ollama
Apache License 2.0
597 stars 45 forks source link

Connects on PC but not in Android #57

Open hellomynameisnoone opened 1 week ago

hellomynameisnoone commented 1 week ago

Requirements

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

JHubi1 commented 1 week ago

Did you set OLLAMA_HOST described in this wiki article?

hellomynameisnoone commented 1 week ago

Yep

Screenshot_20241108-175635_Firefox

FUsIon80 commented 1 week ago

Same problem

hookery commented 1 day ago

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.