Skip to content

can't connect to my remote sd-server instance since api key support was added #2481

Done

Description

@lemonzest79

Hi

I have been using sd-server for a while as an LAN endpoint, either with the web interface or via Atomic Chat
Before I would just set the listen address to 0.0.0.0 and I could connect via the lan address hostname.local:6768 but since the api-key support was added I now get

{"error":"Request origin is not allowed"}

and nothing seems to connect, my command line has not changed

#!/bin/bash
./sd-server --auto-fit off --verbose --diffusion-model models/wan22/wan2.2-t2v-a14b-lownoise-q4_k_m.gguf --high-noise-diffusion-model models/wan22/wan2.2-t2v-a14b-highnoise-q4_k_m.gguf --vae models/wan22/wan2.1_vae.safetensors --t5xxl models/wan22/umt5-xxl-encoder-q4_k_m.gguf --cfg-scale 3.5 --steps 10 --high-noise-steps 8 --color --flash-attn on --seed $RANDOM --scheduler simple --sampling-method euler --flow-shift 3.0 --vae-tiling --offload-to-cpu --listen-port 6768 --listen-ip 0.0.0.0

Am I doing something wrong? I would presume if no api key is set it should be the old behaviour??

Thanks for any help

Lemonzest

Activity

  1. leejet commented on Dec 1, 2026

    @leejet
    Owner

    Thanks for reporting this. The 403 comes from a hostname check we added in #2423 to protect against DNS rebinding. That check runs even when no API key is configured. --listen-ip 0.0.0.0 still lets the server listen on your LAN.

    To keep using hostname.local from the Web UI or Atomic Chat, add this to your existing command, using the hostname and port you actually connect to:

    --cors-origins http://hostname.local:6768

    You can also connect directly to the server’s LAN IP on port 6768. If you still get a 403 after adding it, please comment here and we can reopen the issue.

  2. lemonzest79 commented on Dec 1, 2026

    @lemonzest79
    Author

    Adding the hostname of the machine it is running on (clanker.local:6768) I can now connect to it from my desktop machine on the same lan (electronicbox.local) so that seems to have fixed both WebUI and Atomic Chat, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions