[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"auth:me":3,"site-config":5,"doc-en-guides\u002Fremote-debug":95},{"user":4,"membership":4},null,{"settings":6,"products":22,"navigation":37,"oauth":88,"endpoints":90},{"site.name":7,"site.tagline":8,"site.description":9,"site.tagline.en":10,"site.description.en":11,"site.keywords":12,"site.icp":13,"site.police":14,"site.contact_email":15,"site.company":16,"site.copyright":16,"site.social.github":17,"site.social.x":16,"site.social.wechat":16,"site.support_url":16,"site.announcement":16,"trial.enabled":18,"trial.days":19,"trial.grant_on":20,"trial.enabled_at":16,"site.url":21},"DSH Remote","管理远端 DSH 的客户端：装、连、转、用一个窗口。","DSH Remote 是 DeepSeek Harness 的远程客户端：装好、连上、转发、打开，四件事一个窗口。","The remote client for DeepSeek Harness: install, connect, forward, work.","DSH Remote is the remote client for DeepSeek Harness: four jobs, one window.","DeepSeek Harness,DSH,DSH Remote,远程客户端,SSH 多环境,端口转发,DSH 生命周期,dsh-devtools,VSCode Remote,远程开发,AI 编程","赣ICP备2026027330号-1","赣公网安备36112402000139号","support@dshremote.cn","","https:\u002F\u002Fgithub.com\u002Fzhanglaian\u002Fdsh-remote",true,7,"register","https:\u002F\u002Fdshremote.cn",[23,31],{"slug":24,"name":25,"kind":26,"summary":27,"icon":28,"latestVersion":29,"minSupportedVersion":30},"dsh-remote","DSH Remote 桌面端","desktop","Windows \u002F macOS \u002F Linux 桌面客户端","i-lucide-monitor","1.2.0","0.8.0",{"slug":32,"name":33,"kind":34,"summary":35,"icon":36,"latestVersion":4,"minSupportedVersion":4},"dsh-mobile","DSH Remote 手机端","mobile","Android \u002F iOS 手机客户端","i-lucide-smartphone",{"main":38,"footer":63},[39,43,47,51,55,59],{"key":40,"to":41,"icon":42},"nav.download","\u002Fdownload","i-lucide-download",{"key":44,"to":45,"icon":46},"nav.pricing","\u002Fpricing","i-lucide-tag",{"key":48,"to":49,"icon":50},"nav.docs","\u002Fdocs","i-lucide-book-open",{"key":52,"to":53,"icon":54},"nav.blog","\u002Fblog","i-lucide-newspaper",{"key":56,"to":57,"icon":58},"nav.changelog","\u002Fchangelog","i-lucide-list",{"key":60,"to":61,"icon":62},"nav.about","\u002Fabout","i-lucide-info",[64,70,79],{"titleKey":65,"items":66},"footer.product",[67,68,69],{"key":40,"to":41},{"key":44,"to":45},{"key":56,"to":57},{"titleKey":71,"items":72},"footer.resources",[73,74,75,76],{"key":48,"to":49},{"key":52,"to":53},{"key":60,"to":61},{"key":77,"to":78},"nav.contact","\u002Fcontact",{"titleKey":80,"items":81},"footer.legal",[82,85],{"key":83,"to":84},"nav.privacy","\u002Flegal\u002Fprivacy",{"key":86,"to":87},"nav.terms","\u002Flegal\u002Fterms",{"providers":89},[],{"policy":91,"desktopLatest":92,"appLatest":93,"announcements":94},"\u002Fapi\u002Fv1\u002Fclient\u002Fpolicy","\u002Fapi\u002Fv1\u002Fdesktop\u002Flatest","\u002Fapi\u002Fv1\u002Fapp\u002Flatest","\u002Fapi\u002Fv1\u002Fannouncements",{"doc":96,"locale":140,"requestedLocale":140,"fallback":141,"tree":142,"nav":188},{"slug":97,"title":98,"html":99,"toc":100,"updatedAt":135,"publishedAt":136,"seoTitle":137,"seoDescription":138,"ogImage":4,"canonical":4,"keywords":4,"faq":139},"guides\u002Fremote-debug","Live debugging: how remote services reach your machine, and what to check when a page will not open","\u003Cp>This page covers a service running in the remote DSH that you want in your local browser: why it appears, what address it gets, when it disappears, and where to look when it will not open.\u003C\u002Fp>\n\u003Ch2 id=\"prerequisite-dsh-devtools-in-the-remote-dsh\">Prerequisite: dsh-devtools in the remote DSH\u003C\u002Fh2>\n\u003Cp>Automatic forwarding depends on a port snapshot: every second the companion plugin records which ports DSH's descendant processes are listening on, writing it to \u003Ccode>~\u002F.dsh\u002Fstorages\u002Fdevtools_ports.json\u003C\u002Fcode>; the client reads it every four seconds.\u003C\u002Fp>\n\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"background-color:#fff;--shiki-dark-bg:#24292e;color:#24292e;--shiki-dark:#e1e4e8\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"color:#6F42C1;--shiki-dark:#B392F0\">dsh\u003C\u002Fspan>\u003Cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\"> plugin\u003C\u002Fspan>\u003Cspan style=\"color:#005CC5;--shiki-dark:#79B8FF\"> --profile\u003C\u002Fspan>\u003Cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\"> web\u003C\u002Fspan>\u003Cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\"> add\u003C\u002Fspan>\u003Cspan style=\"color:#032F62;--shiki-dark:#9ECBFF\"> @zhangzhian\u002Fdsh-devtools\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003Cp>Restart DSH afterwards; a client-installed runtime already includes it. Without the plugin — or when the snapshot cannot be read — no automatic rules are created, and the status line says &quot;Cannot read the port snapshot&quot;. Existing rules are still checked.\u003C\u002Fp>\n\u003Ch2 id=\"the-rule-ownership-liveness\">The rule: ownership × liveness\u003C\u002Fh2>\n\u003Cp>Both must hold before a rule exists:\u003C\u002Fp>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Condition\u003C\u002Fth>\n\u003Cth>Meaning\u003C\u002Fth>\n\u003Cth>Source\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n\u003Ctr>\n\u003Ctd>Ownership\u003C\u002Ftd>\n\u003Ctd>The port grew out of DSH's process tree\u003C\u002Ftd>\n\u003Ctd>The plugin's snapshot (process ancestry)\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Liveness\u003C\u002Ftd>\n\u003Ctd>Something is genuinely listening right now\u003C\u002Ftd>\n\u003Ctd>The client enumerates the remote listening table\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Cp>Started from the run panel with ▶ counts; so does \u003Ccode>pnpm run dev\u003C\u002Fcode> typed into a DSH terminal. Services that were already running before you connected are found too. Liveness alone would forward services you never asked for; the snapshot alone would keep a dead port for a moment. You need both.\u003C\u002Fp>\n\u003Ch2 id=\"reading-the-status-line\">Reading the status line\u003C\u002Fh2>\n\u003Cp>Under Settings → Automatic port forwarding the line reports both sides:\u003C\u002Fp>\n\u003Cblockquote>\n\u003Cp>dsh started 2 runs and claimed 3 ports (1 of them from terminals); 5 listening remotely; 1 auto-forwarded\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Cp>&quot;N auto-forwarded&quot; means both conditions held. &quot;N more rules are only being checked against the remote host&quot; covers manual rules and non-matching ones. The line may add &quot;N opened this round&quot;, &quot;N disappeared ports cleared&quot; or &quot;limit of 8 reached&quot;.\u003C\u002Fp>\n\u003Cp>Three kinds of &quot;invisible&quot; are distinct, and the last two never clear a rule: \u003Ccode>owned: []\u003C\u002Fcode> means probed and genuinely empty; \u003Ccode>owned: null\u003C\u002Fcode> means this round produced no answer; an unreadable file means the plugin is missing.\u003C\u002Fp>\n\u003Ch2 id=\"local-ports-same-number-first\">Local ports: same number first\u003C\u002Fh2>\n\u003Cp>Remote 3000 becomes local 3000, so \u003Ccode>localhost:3000\u003C\u002Fcode>, bookmarks and OAuth callbacks keep working. If the number is taken, an automatic rule falls back to its last assigned port, then to one the system picks; a rule whose local port you fixed reports &quot;local port X is already in use&quot; rather than changing silently.\u003C\u002Fp>\n\u003Cp>Remote ports below 1024 are forwarded too, but reusing the number locally depends on the platform: Windows binds 82 directly, Linux tries and falls back, macOS uses a high port.\u003C\u002Fp>\n\u003Ch2 id=\"ports-that-are-never-auto-forwarded\">Ports that are never auto-forwarded\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>SSH itself (22 \u002F 2222).\u003C\u002Fli>\n\u003Cli>The DSH Web port (3080).\u003C\u002Fli>\n\u003Cli>Addresses bound to a specific interface, such as \u003Ccode>192.168.1.5:8081\u003C\u002Fcode> — unreachable on the remote loopback, so forwarding only yields 502s.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Services bound to \u003Ccode>0.0.0.0\u003C\u002Fcode> \u002F \u003Ccode>::\u003C\u002Fcode> \u003Cstrong>are\u003C\u002Fstrong> forwarded (Spring Boot's default), and so are remote 80 \u002F 82 \u002F 443.\u003C\u002Fp>\n\u003Ch2 id=\"rules-first-tabs-only-if-you-ask\">Rules first, tabs only if you ask\u003C\u002Fh2>\n\u003Cp>By default discovery records rules in the background; you decide when to open a page. To let it open tabs for you, turn on \u003Cstrong>Settings → Automatic port forwarding → &quot;Open tabs automatically when forwarding&quot;\u003C\u002Fstrong> (off by default). The first round after launch does not grab a tab before the DSH page appears.\u003C\u002Fp>\n\u003Ch2 id=\"manual-and-static-rules\">Manual and static rules\u003C\u002Fh2>\n\u003Cp>When discovery cannot see a service, add a rule under \u003Cstrong>Settings → Forwarding rules → +\u003C\u002Fstrong>: a local port plus a remote \u003Ccode>host:port\u003C\u002Fcode>, with \u003Ccode>0\u003C\u002Fcode> to let the system choose. Manual rules do not need the plugin. To keep one forever, mark it static on the rule card: it survives the service disappearing and is never cleaned up automatically.\u003C\u002Fp>\n\u003Ch2 id=\"when-rules-get-cleared\">When rules get cleared\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>Once a remote port stops listening, rules pointing at it are removed and their tabs closed.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Hand-written rules are checked the same way\u003C\u002Fstrong>; only static rules and the DSH default entry are exempt.\u003C\u002Fli>\n\u003Cli>Removal needs three consecutive misses (4-second rounds); new or edited rules get a 5-minute grace period. After removal comes a 2-minute cooldown; a returning service is forwarded again the same round.\u003C\u002Fli>\n\u003Cli>Nothing is cleared while SSH is disconnected.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"when-a-page-will-not-open\">When a page will not open\u003C\u002Fh2>\n\u003Cp>Always in the same order: \u003Cstrong>the failure on the page → the rule state → the \u003Ccode>[dsh remote]\u003C\u002Fcode> log\u003C\u002Fstrong>.\u003C\u002Fp>\n\u003Cul>\n\u003Cli>The 502 page states the reason, e.g. \u003Ccode>connect ECONNREFUSED 127.0.0.1:5173\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>The rule shows listening \u002F starting \u002F failed \u002F not started.\u003C\u002Fli>\n\u003Cli>The terminal log holds the probe and the failure.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Common cases:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>Host \u002F Origin checks.\u003C\u002Fstrong> Host rewriting has four modes — to \u003Ccode>127.0.0.1:&lt;local port&gt;\u003C\u002Fcode> (recommended), to the remote address, off, or custom — and Origin can be rewritten too. Vite's \u003Ccode>allowedHosts\u003C\u002Fcode> and DSH's Origin check need no extra configuration.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>HMR (hot module replacement) needs no setup\u003C\u002Fstrong>: the connection is transparent TCP forwarding, so HTTP and WebSocket are byte streams.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>401 \u002F Basic authentication.\u003C\u002Fstrong> The app raises its own sign-in box; &quot;Remember password&quot; stores the credential in the system key store.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>HTTPS targets.\u003C\u002Fstrong> TLS bytes are passed through, so the page opens at \u003Ccode>https:\u002F\u002F127.0.0.1:&lt;port&gt;\u003C\u002Fcode>; certificate mismatches are allowed for loopback only, and Host rewriting does not apply because the Host is inside TLS.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Multiple tabs.\u003C\u002Fstrong> The DSH page and any forwarded page can be open together, with an address bar and back \u002F forward \u002F reload.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"three-kinds-of-services-it-cannot-see\">Three kinds of services it cannot see\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>Started outside DSH with \u003Ccode>nohup\u003C\u002Fcode>, pm2, systemd, screen or tmux: the process ancestry is broken.\u003C\u002Fli>\n\u003Cli>DSH in a container while you connect to the host (or the reverse): different namespaces; a non-root \u003Ccode>lsof\u003C\u002Fcode> also sees only the same user's sockets.\u003C\u002Fli>\n\u003Cli>Bound to a specific interface: unreachable on the remote loopback.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>For all three, add a rule by hand.\u003C\u002Fp>\n\u003Ch2 id=\"next\">Next\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>Nothing connects: \u003Ca href=\"\u002Fen\u002Fdocs\u002Fguides\u002Fssh-tunnel\">SSH troubleshooting\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli>Why it works: \u003Ca href=\"\u002Fen\u002Fblog\u002Fport-forwarding\">Port forwarding\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli>The plugin: \u003Ca href=\"\u002Fen\u002Fblog\u002Fdsh-devtools-plugin\">dsh-devtools\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli>The product: \u003Ca href=\"\u002Fen\u002Fdocs\u002Fgetting-started\u002Foverview\">What is DSH Remote?\u003C\u002Fa>\u003C\u002Fli>\n\u003C\u002Ful>\n",[101,105,108,111,114,117,120,123,126,129,132],{"level":102,"text":103,"id":104},2,"Prerequisite: dsh-devtools in the remote DSH","prerequisite-dsh-devtools-in-the-remote-dsh",{"level":102,"text":106,"id":107},"The rule: ownership × liveness","the-rule-ownership-liveness",{"level":102,"text":109,"id":110},"Reading the status line","reading-the-status-line",{"level":102,"text":112,"id":113},"Local ports: same number first","local-ports-same-number-first",{"level":102,"text":115,"id":116},"Ports that are never auto-forwarded","ports-that-are-never-auto-forwarded",{"level":102,"text":118,"id":119},"Rules first, tabs only if you ask","rules-first-tabs-only-if-you-ask",{"level":102,"text":121,"id":122},"Manual and static rules","manual-and-static-rules",{"level":102,"text":124,"id":125},"When rules get cleared","when-rules-get-cleared",{"level":102,"text":127,"id":128},"When a page will not open","when-a-page-will-not-open",{"level":102,"text":130,"id":131},"Three kinds of services it cannot see","three-kinds-of-services-it-cannot-see",{"level":102,"text":133,"id":134},"Next","next","2026-11-03T05:04:03.000Z","2026-10-05T03:11:53.000Z","Live debugging and automatic port forwarding","How DSH Remote forwards remote ports: ownership × liveness, dsh-devtools snapshot, rule states, static rules, cleanup, Host\u002FOrigin and 401\u002FHTTPS.",[],"en",false,[143,162,174,183],{"slug":144,"title":145,"children":146,"order":151},"getting-started","Getting Started",[147,152,157],{"slug":148,"title":149,"children":150,"order":151},"getting-started\u002Foverview","What is DSH Remote? Four capabilities, five platforms, pricing",[],5,{"slug":153,"title":154,"children":155,"order":156},"getting-started\u002Finstall","Install DSH Remote",[],10,{"slug":158,"title":159,"children":160,"order":161},"getting-started\u002Fquickstart","Five-minute quickstart",[],11,{"slug":163,"title":164,"children":165,"order":173},"guides","Guides",[166,171],{"slug":167,"title":168,"children":169,"order":170},"guides\u002Fssh-tunnel","SSH troubleshooting: when it will not connect and pages will not open",[],20,{"slug":97,"title":98,"children":172,"order":173},[],21,{"slug":175,"title":176,"children":177,"order":182},"reference","Reference",[178],{"slug":179,"title":180,"children":181,"order":182},"reference\u002Fconfig","Settings reference",[],30,{"slug":184,"title":185,"children":186,"order":187},"faq","DSH Remote FAQ: features, pricing, port forwarding",[],99,{"prev":189,"next":190},{"slug":179,"title":180},{"slug":167,"title":168}]