Skip to content

Remote Ollama Server Not Respected (Still Using localhost) #86

Description

@Bernic777

Hello,

I am currently trying to use this project with an Ollama backend, but I am running into limitations due to local resource constraints.

Context

I am unable to run Ollama locally because of limited CPU/RAM, so I am attempting to use a remote Ollama server hosted on a VPS.

What I Have Tried

1. Modifying settings.json

I changed the endpoint from the default:

http://localhost:11434

to:

http://<VPS_IP>:11434

However, requests still appear to be directed to localhost, suggesting the endpoint may be hardcoded or internally overridden.

2. Port Forwarding / Redirect (Windows)

I used netsh interface portproxy to forward traffic:

localhost:11434 → <VPS_IP>:11434

Command used:

netsh interface portproxy add v4tov4 listenport=11434 listenaddress=127.0.0.1 connectport=11434 connectaddress=<VPS_IP>

Result:

  • Some requests are successfully forwarded
  • However, behavior is inconsistent, as if certain calls bypass the proxy or use a different binding

3. Ollama Binding on VPS

I verified that Ollama is bound to:

0.0.0.0:11434

And confirmed accessibility:

curl http://<VPS_IP>:11434/api/tags

Main Issue

The application seems to:

  • Still rely on localhost internally
  • Not fully respect the configured endpoint

Possible causes:

  • Hardcoded localhost usage
  • Internal client override
  • Multiple configuration sources (e.g., environment variables vs JSON)

Questions

  1. Is it currently possible to fully use a remote Ollama server with this project?
  2. Is there an official way to override the endpoint (e.g., via environment variables, CLI flags, or config priority)?
  3. Are there any parts of the codebase that are still hardcoded to localhost?

Suggestion

It would be very helpful if:

  • The Ollama endpoint could be explicitly configurable (single source of truth)
  • Remote inference support was more stable for low-resource environments

Thank you. and may God Bless You

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions