You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user-guides/workspace-access/port-forwarding.md
+14-6Lines changed: 14 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -6,17 +6,25 @@ Port forwarding lets developers securely access processes on their Coder
6
6
workspace from a local machine. A common use case is testing web applications in
7
7
a browser.
8
8
9
-
There are three ways to forward ports in Coder:
9
+
There are multiple ways to forward ports in Coder:
10
10
11
+
-[Coder Desktop](../desktop/index.md)
11
12
- The `coder port-forward` command
12
13
- Dashboard
13
14
- SSH
14
15
15
-
The `coder port-forward` command is generally more performant than:
16
+
The performance of these methods generally follows in the following order.
16
17
17
-
1. The Dashboard which proxies traffic through the Coder control plane versus
18
-
peer-to-peer which is possible with the Coder CLI
19
-
1.`sshd` which does double encryption of traffic with both Wireguard and SSH
18
+
1. Coder Desktop: as it uses a VPN tunnel to your workspace and provides access to all running ports.
19
+
1. The `coder port-forward` command.
20
+
1. The Dashboard, which proxies traffic through the Coder control plane versus
21
+
peer-to-pee,r which is possible with the Coder CLI and Coder Desktop.
22
+
1.`ssh`, which does double encryption of traffic with both Wireguard and SSH.
23
+
24
+
## Coder Desktop
25
+
26
+
[Coder Desktop](../desktop/index.md) provides seamless access to your remote workspaces, eliminating the need to install a CLI or manually configure port forwarding.
27
+
Just install and access all your ports at `<workspace-name>.coder:PORT`.
20
28
21
29
## The `coder port-forward` command
22
30
@@ -62,7 +70,7 @@ where each segment of hostnames must not exceed 63 characters. If your app
62
70
name, agent name, workspace name and username exceed 63 characters in the
63
71
hostname, port forwarding via the dashboard will not work.
64
72
65
-
### From an coder_app resource
73
+
### From a coder_app resource
66
74
67
75
One way to port forward is to configure a `coder_app` resource in the
68
76
workspace's template. This approach shows a visual application icon in the
0 commit comments