Skip to content

Misc. bug: Starting llama-server.exe with --host 0.0.0.0 results in server not working, ok if only running over 127.0.0.1, for --models-dir feature. #17862

Closed

Description

@alan-l

Name and Version

Module: llama-server.exe (b7315)

Operating systems

Windows

Which llama.cpp modules do you know to be affected?

llama-server

Command line

llama-server.exe --host 0.0.0.0 --port 8080 --n-gpu-layers 0 --models-max 1 --models-dir "C:\Models\MistralAI"

Problem description & steps to reproduce

Params: --host 0.0.0.0 --port 8080 --n-gpu-layers 0 --models-max 1 --models-dir "C:\Models\MistralAI"
Error:

Starts ok:
    init: using 6 threads for HTTP server
    main: starting router server, no model will be loaded in this process
    start: binding port with default address family
    main: router server is listening on http://0.0.0.0:8080
    main: NOTE: router mode is experimental
    main:       it is not recommended to use this mode in untrusted environments

Later after selecting model from webgui dropdown:
    [60024] main: model loaded
    [60024] main: server is listening on http://0.0.0.0:60024
    [60024] main: starting the main loop...
    [60024] srv  setup_child_: notifying router server (port=8080) that model Ministral-3-3B-Instruct-2512-GGUF is ready
    [60024] srv  setup_child_: failed to notify router server: Could not establish connection

First Bad Commit

Started when this feature was first introduced. I didn't report it earlier because I thought you guys may catch it during testing for later versions.

Relevant log output

Activity

  1. changed the title [-]Misc. bug: Starting llama-server.exe with --host 0.0.0.0 results in server not working, ok if only running over 127.0.0.1[/-] [+]Misc. bug: Starting llama-server.exe with --host 0.0.0.0 results in server not working, ok if only running over 127.0.0.1, for --models-dir feature.[/+] on Dec 8, 2025
  2. added
    bug
    medium severity
    regression
    and removed on Dec 8, 2025
  3. plashenkov commented on Dec 8, 2025

    @plashenkov

    I can confirm the problem. Using --host 0.0.0.0, and models cannot be loaded in web UI. With or without --models-dir - there's no difference.

  4. alan-l commented on Dec 11, 2025

    @alan-l
    Author

    Looks like the above error has been fixed, but the WebUI now is unable to submit queries with the enter key. When I hit the enter key, all it does is bring up the "Select Model" dropdown. When I keep hitting the enter key, the width of the dropdown keeps shrinking. Tested on Firefox and Chrome, both latest version.

  5. plashenkov commented on Dec 11, 2025

    @plashenkov

    Yes, it seems the problem with --host 0.0.0.0 has been fixed.
    I don't have the issue with the Enter key.
    Version b7358

  6. alan-l commented on Dec 18, 2025

    @alan-l
    Author

    Seems to have disappeared in later versions, closing?

  7. self-assigned this
    on Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugmedium severityregressionserverserver/api

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions