Introduction¶
When developing or testing DeepSeek Harness (DSH) locally, the Web UI is by default bound only to an internal port of the container or process. To access it over a local area network (LAN), you typically need to manually configure port mapping or use one-time login tokens — which is both cumbersome and insecure. The hngm-hp/dsh-lan-access plugin forwards the native DSH Web UI to a LAN port through a “device request + owner approval” mechanism, allowing devices to obtain persistent Cookie-based access without relying on easily leaked tokens.
What It Is¶
hngm-hp/dsh-lan-access is a DSH plugin maintained by HNGM-HP, categorized under admin-security. It does exactly two things: authentication and proxying. It listens on a configurable port (default 0.0.0.0:8097) and reverse-proxies to the local DSH Web UI. When a new device accesses it for the first time, a waiting page is displayed; the device is granted access only after the owner approves it from the admin page. Approved devices receive a persistent HttpOnly device cookie, so no re-pairing is required after DSH or the container restarts.
Core Features¶
- Reverse proxy: Listens on
0.0.0.0:8097(configurable) and forwards requests to the local DSH Web UI. - Device pairing flow: When a device first accesses
http://<host>:8097, a waiting page is displayed. The device can access the native DSH Web UI only after the owner clicks “Allow” from the admin page. - Persistent cookie: Once approved, the device receives an HttpOnly device cookie, eliminating the need to re-pair after DSH or container restarts.
- Device revocation: Click “Remove” on an approved device from the admin page to immediately revoke its access.
- Protocol support: Supports HTTP and WebSocket.
- IP is not part of authentication: The device IP is displayed only as the request source. Dynamic IPs or network changes will not invalidate a device.
- Local access bypass: Direct access from
127.0.0.1to port 8097 skips the device pairing flow. - Admin page locations:
- Web profile: DSH Settings → LAN Access.
- Desktop:
http://127.0.0.1:8097/__manage(accessible locally only). - Admin API security: Accepts an explicit
x-dsh-lan-adminheader from the desktop client to avoid false positives from CSRF protection.
Security Model¶
The actual credential for a device is the device cookie issued after approval (random device ID + HMAC + registry), not the IP address or browser fingerprint. Browser fingerprints (UA/OS/screen/language/timezone hash) are used solely for identification and display. The P1 version supports HTTP only; when used via public port mapping, the connection is not encrypted. The tls.certFile / tls.keyFile configuration options are reserved but not yet available.
Installation & Enablement¶
Install as a DSH bundle:
dsh plugin --profile desktop add /path/to/dsh-lan-access
dsh plugin --profile web add /path/to/dsh-lan-access
Restart DSH after installation (for the Web profile, restart the container).
Example for NAS / Docker environments:
# Place this directory under DSH_HOME, e.g. /data/plugins/dsh-lan-access
docker exec dsh dsh plugin --profile web add /data/plugins/dsh-lan-access
docker restart dsh
Check the owner login address after installation:
docker logs dsh 2>&1 | grep 'dsh web:' | tail-1
Typical Usage¶
- The device accesses
http://<host>:8097. - Web profile: Click “Allow” in DSH Settings → LAN Access.
- Desktop: Open
http://127.0.0.1:8097/__manageand click “Allow”. - The device is automatically redirected to the native DSH Web UI.
- To revoke access, click “Remove” on the approved device from the admin page.
Configuration¶
In the bundle’s cordis.patch.yml:
config:
bind: 0.0.0.0
port: 8097
# Optional, not yet available:
# tls:
# certFile: /path/to/cert.pem
# keyFile: /path/to/key.pem
Use Cases & Caveats¶
Ideal for scenarios that require LAN access to the DSH Web UI, such as team collaboration, remote debugging, and testing environments.
Note: The plugin runs with the current DSH process privileges. Review the source code and license before installation. The P1 version supports HTTP only; when used via public port mapping, the connection is unencrypted. Do not map the DSH admin port (typically 8096) to the public internet — only map this plugin’s port 8097.
Conclusion¶
hngm-hp/dsh-lan-access provides a secure LAN access solution for the DSH Web UI through a “device request + owner approval” mechanism. It does not spin up a second UI, nor does it require VPN/tunneling/port mapping — it handles only authentication and proxying, making it well-suited for sharing the DSH Web UI within a team.
Plugin directory: https://www.skillhub.cn/plugins/HNGM-HP/dsh-lan-access
GitHub: https://github.com/HNGM-HP/dsh-lan-access