chatbox icon indicating copy to clipboard operation
chatbox copied to clipboard

[BUG] IOS 18.3 no local network access - network error

Open Ltamann opened this issue 11 months ago • 10 comments

Using iOS 18.3 on iphone, I can access Ollama from any app that has permission to access the local network. However, the Chatbox app doesn't have this ability because it doesn't request local network access permissions.

As a result, I can use Ollama via Safari or any other browser, but when I select Ollama in the settings of chatbox with the correct local IP and port, it can't connect properly, and I cannot select a model.

When chatting with these settings and local ip set i get a "A network error has occurred..." but in the Ollama server logs, I can see the following GET requests:

[GIN] 2025/01/27 - 13:41:45 | 403 | 0s | 192.168.10.174 | GET "/api/api/tags"

I believe this issue might be caused by missing policies or restrictions on local network access.

Ltamann avatar Jan 27 '25 13:01 Ltamann

I think this bug is caused by not requesting local network access.

I my iOS, Settings -> Privacy -> Local Network, I can't find Chatbox

Endle avatar Jan 28 '25 03:01 Endle

I confirm the same issue on my phone for the same reasons.

TheMiNuS avatar Jan 28 '25 19:01 TheMiNuS

I can confirm the same issue on my device running iOS 18.3. It works from Safari or Chrome, but I get 403 Unauthorized from the server when accessing from the Chatbox App

jerlasvegas avatar Jan 28 '25 22:01 jerlasvegas

Same issue here. Agree with the above that this probably because this app is not asking for local network access permissions.

jswillia avatar Feb 01 '25 01:02 jswillia

Same, please fix, and do not try do detect the target is on the local network or remote, just request access. For e.g. I may resolve chat.misaka.org to a local machine, which is hard to determinate.

Misaka-0x447f avatar Feb 02 '25 10:02 Misaka-0x447f

Same here, I managed to get it working over a reverse proxy without password protection, the problem, as soon as I add password protection to the caddy config, it want work anymore. Then I tried cloudflare tunnel, working on windows and Linux Chatbox app, but not on IPhone….lets see what happen with future updates…

bingobongo1965 avatar Feb 07 '25 02:02 bingobongo1965

Same here. Fix it for ios 18.3 please. The config below works on MacOS. BUT NOT on IOS 18.3

Name: ByteDance-R1

API HOST: https://ark.cn-beijing.volces.com/api/v3

API PATH: /chat/completions

API key: MY-KEY-HERE

Model: (which is actually DeepSeek-R1, It's a private deploy in CLOUD[volcengine.com]) ep-2025020xxxxxxx-xxxxx

ykstars avatar Feb 11 '25 16:02 ykstars

Same here. Fix it for ios 18.3 please. The config below works on MacOS. BUT NOT on IOS 18.3

Name: ByteDance-R1

API HOST: https://ark.cn-beijing.volces.com/api/v3

API PATH: /chat/completions

API key: MY-KEY-HERE

Model: (which is actually DeepSeek-R1, It's a private deploy in CLOUD[volcengine.com]) ep-2025020xxxxxxx-xxxxx

Same issue happens on my iPhone.

ruicao93 avatar Feb 12 '25 14:02 ruicao93

As of v1.10.5, access to local Ollama seems to work only with local IP addresses on iPadOS, but not with host names that resolve to local IP addresses.

blebo avatar Mar 12 '25 13:03 blebo

solved in my case now, by updating to IOS v1.10.5.

Same here. Fix it for ios 18.3 please. The config below works on MacOS. BUT NOT on IOS 18.3

Name: ByteDance-R1

API HOST: https://ark.cn-beijing.volces.com/api/v3

API PATH: /chat/completions

API key: MY-KEY-HERE

Model: (which is actually DeepSeek-R1, It's a private deploy in CLOUD[volcengine.com]) ep-2025020xxxxxxx-xxxxx

ykstars avatar Mar 26 '25 05:03 ykstars