Skip to content

chore: docs: add port-forwarding options (CLI & ssh) #3394

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 7, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: code type
  • Loading branch information
Eric Paulsen authored and Eric Paulsen committed Aug 7, 2022
commit 2b7330be01bc9bca1af6d6b25035a7d0684e3226
8 changes: 4 additions & 4 deletions docs/ides/configuring-port-forwarding.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ There are two ways to forward ports:

For example:

```hcl
```console
coder port-forward mycoderworkspacename --tcp 8000:8000
```

Expand All @@ -20,7 +20,7 @@ For more examples, type `coder port-forward --help`
Use the Coder CLI to first [configure SSH](../ides.md#ssh-configuration) on your
local machine. Then run `ssh`. For example:

```hcl
```console
ssh -L 8000:localhost:8000 coder.mycoderworkspacename
```

Expand All @@ -29,6 +29,6 @@ ssh -L 8000:localhost:8000 coder.mycoderworkspacename
After completing either Port Forwarding method, open a web browser on your local
machine to access the Coder workspace process.

```hcl
```console
http://localhost:<yourforwardedport>
```
```