Repository navigation
Description
Environment
Where are you using Unsloth?
- Unsloth desktop application
Operating system and version: Windows 11
GPU model(s) and accelerator backend: NVIDIA CUDA
Versions:
- Unsloth: v0.1.808-beta
- Package: 2026.9.4
- Desktop: 0.1.808-beta
- llama.cpp: custom build (TheTom), commit 30d6881
What happened?
When I open http://127.0.0.1:8888 or http://localhost:8888 in the browser, the server responds with 404 Not Found. The exact same request to http://192.168.1.x:8888 (the machine's LAN IP) returns 200 and serves the full UI. Both URLs hit the same process on the same port; the only difference is the HTTP Host header.
This blocks the microphone / speech-dictation feature, because Chrome only grants getUserMedia() in a secure context — and plain-HTTP LAN IPs are not secure contexts, while localhost/127.0.0.1 are.
Setup that triggers it:
- Unsloth Desktop app, latest version (updated same day)
- Port 8888 (default), also reproduced on a custom port (777)
- LAN access toggle: tested both on and off — no difference
netstatconfirms the process is LISTENING on both127.0.0.1:8888and192.168.1.x:8888(same PID)
Steps to reproduce:
- Start Unsloth Studio via the Desktop app (default settings).
- In a terminal, run:
curl -s -o NUL -w "%{http_code}\n" http://127.0.0.1:8888/ curl -s -o NUL -w "%{http_code}\n" http://192.168.1.x:8888/ - Observe:
404on loopback,200on LAN IP.
Expected behavior:
Loopback (127.0.0.1 / localhost) serves the UI (200), just like the documented default. The official docs and install flow both direct users to open http://127.0.0.1:8888. Loopback is also a secure context in browsers, which is required for the microphone / speech-dictation feature to work without extra flags or HTTPS.
Actual behavior:
http://127.0.0.1:8888/ and http://localhost:8888/ → 404.
http://192.168.1.x:8888/ → 200 (full UI loads).
The only variable that differs between the two requests is the Host header. No server-side setting, toggle, or flag in the Desktop app changes this behaviour.
Model and operation involved:
Not model-specific — this is a frontend-serving / routing issue at the HTTP layer, before any inference. Affects all models and all operations (chat, dictation, etc.) when accessed via loopback.
Diagnostics and logs
Desktop application
none
curl output
>curl -s -o NUL -w "%{http_code}\n" http://127.0.0.1:8888/
404
>curl -s -o NUL -w "%{http_code}\n" http://192.168.1.x:8888/
200
netstat (port 8888)
TCP 127.0.0.1:8888 0.0.0.0:0 LISTENING <PID>
TCP 192.168.1.x:8888 0.0.0.0:0 LISTENING <PID>
(Both lines show the same PID — a single process listening on both interfaces)
Activity
fix(studio): serve desktop SPA on loopback listener
fix(studio): serve desktop SPA on loopback listener
fix(studio): pin loopback SPA to listener Host authority (unslothai#1…
fix(studio): serve desktop SPA on loopback listener
fix(studio): serve desktop SPA on loopback listener (unslothai#10847)