From d0c5a58d86530935d89c9c7d377e84498acfd097 Mon Sep 17 00:00:00 2001 From: Bjorn Robertsson Date: Thu, 11 Dec 2025 13:07:09 +0000 Subject: [PATCH] Enhance port-forwarding documentation Clarify usage of port-forwarding command for multiple agents. --- docs/admin/networking/port-forwarding.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/admin/networking/port-forwarding.md b/docs/admin/networking/port-forwarding.md index 4f117775a4e64..3c4e9777d0960 100644 --- a/docs/admin/networking/port-forwarding.md +++ b/docs/admin/networking/port-forwarding.md @@ -44,6 +44,14 @@ respective local ports. coder port-forward myworkspace --tcp 3000,9990-9999 ``` +Forward the remote TCP port `3000` and all ports from `9990` to `9999` to their +respective local ports to the `agent` in your Workspace (typically main or dev). +This is needed when you have multiple agents in your workspace. + +```console +coder port-forward myworkspace.agent --tcp 3000,9990-9999 +``` + For more examples, see `coder port-forward --help`. ## Dashboard