Introduction¶
The Web interface of DeepSeek Harness (DSH) typically only listens on the local loopback address. If you run DSH on a machine in your study and want to open the same Harness on a laptop in the living room, you often have to use SSH port forwarding, change the binding address, or install the environment on every machine. This need for “accessing local DSH across devices” is common in multi-machine collaboration within a LAN, but there is a lack of a solution that comes with DSH installation and can be toggled in settings.
Below is an introduction to the community plugin x1aom1ngtx/dsh-lan-remote (Networking Tools category): It shares the local DSH to the outside of the same LAN via a small HTTP/WebSocket gateway, and allows you to save, detect, and open the DSH of other computers on the “Settings → LAN Remote” page. The maintainer is X1aoM1ngTX; the current npm package version is 1.0.0, license is MIT.
What is this¶
One sentence: Start a lightweight gateway on the local machine for transparent forwarding and access code verification; authentication is still handled by DSH itself; the remote browser accesses via a share link with ?lan= and does not modify DSH’s original binding method. After installing the plugin, the entry point is Settings → LAN Remote, and it does not take responsibility for automatically discovering other DSHs in the LAN, requiring manual pasting of the share link once.
Core Features¶
Local Sharing¶
Starts the gateway on 0.0.0.0:<port> (default port 4778), transparently forwarding requests to the DSH Web service on the local machine 127.0.0.1:50590. The share link looks like:
http://192.168.1.8:4778/?lan=ABCD-1234
The access code can be reset at any time; the listening port can be changed.
Other Computers¶
Save the share link sent by others on the settings page, detect if the other party is online, and after confirming connectivity via Test, open the remote DSH in a new tab using Connect.
State Persistence¶
Port, access code, local sharing toggle, and saved “machine list” are written to disk; DSH will automatically restore the previous sharing state after restarting. The data file path is $DSH_HOME/lan-remote/state.json; the plugin does not save DSH tokens or Cookies.
How it Works (Relation to Login)¶
The gateway does not modify DSH’s binding address or implement login on its own; its main tasks are threefold:
- When a browser accesses the gateway, the gateway rewrites
Host,Origin, andRefererto the loopback address and forwards them to the DSH Web service. - The
?lan=access code in the share link is validated by the gateway; upon passing, it is swapped for the DSH process’s own startup token to access DSH. - DSH uses that token to issue a browser Cookie; subsequent HTTP and WebSocket are authenticated by DSH itself.
Therefore: The only additional access control is the access code; session authentication remains on the DSH side.
Installation and Enablement¶
Install the bundle via plugin_manager within DSH. Package name @x1aom1ngtx/dsh-lan-remote, requires DSH version >=0.2.2-rc.1 <0.3.0.
Install from npm (Recommended): Pre-built package, no GitHub connectivity check needed during installation; in China, it will sequentially try mirrors like npmmirror.
plugin_manager action=install_bundle target=@x1aom1ngtx/dsh-lan-remote@1.0.0
If no version number is specified, it takes the latest:
plugin_manager action=install_bundle target=@x1aom1ngtx/dsh-lan-remote
Install from GitHub Source Code (Fixed commit for easy comparison during upgrades; 858dd4e corresponds to tag v1.0.0):
plugin_manager action=install_bundle target=git+https://github.com/X1aoM1ngTX/dsh-lan-remote.git#858dd4e10a7d80bd19d252820eb23ef7705bd104
For local development, you can point to a directory:
plugin_manager action=install_bundle target=/absolute/path/to/dsh-lan-remote
After installation, refresh the page and open Settings → LAN Remote.
Typical Usage¶
Both (or more) computers need to install this plugin. Follow the steps suggested in the README:
- On the connected machine: Settings → LAN Remote → Open “Local Sharing” → Copy the share link provided on the page.
- On the initiating machine: Paste the link into “Other Computers” → Click Test to confirm connectivity → Click Connect.
- If the other party cannot connect, expand “Another computer cannot connect?”, copy the administrator PowerShell firewall command shown in the prompt and execute it once (only allows inbound traffic on the specific port for private networks; this prompt is currently mainly verified on Windows, other systems need to allow the port manually).
The remote interface will open in a new tab, not embedded in the settings page: cross-site iframes are blocked by the browser’s third-party cookie policy.
Applicable Scenarios and Notes¶
Who is it for: Developers in the same trusted LAN who want to access DSH on another machine via a browser, but do not want to modify DSH binding or set up a VPN/SSH tunnel.
Security Notice (Must Read):
- The share link is a credential. Anyone with the link during the sharing period can use DSH as if they were sitting in front of that computer: reading/writing files, executing commands, and using the logged-in account.
- Only enable on a trusted network and turn off sharing when not in use; only send links to trusted people.
- “Reset access code” only invalidates old links, does not log out already logged-in remote browsers — their Cookies can remain for up to 30 days.
- The gateway uses plain HTTP; do not use on untrusted networks or across untrusted network segments.
Plugin Execution Boundaries: The plugin runs with the permissions of the current DSH process. It is recommended to read the repository source code and the MIT license before installing to determine if your environment meets security requirements.
Known Limitations:
- No LAN auto-discovery, manual link paste required.
- Plain HTTP between the remote browser and DSH.
The DSH ecosystem advocates “everything is a plugin”; community directories (such as plugin pages on SkillHub) are independent collection sites with no official affiliation to DeepSeek/Huansuan; this article does not describe it as an official app store.
Links¶
- Community directory: https://www.skillhub.cn/plugins/X1aoM1ngTX/dsh-lan-remote
- Source and README: https://github.com/X1aoM1ngTX/dsh-lan-remote