docs: fix up port-forwarding (#3403)

- Improve English
- Make new page live in manifest.json
- Add icon
- Outdent page to root
This commit is contained in:
Ammar Bandukwala
2022-08-07 22:22:47 +00:00
committed by GitHub
parent 8d4b6086f6
commit 13a2014d7f
5 changed files with 42 additions and 39 deletions
-34
View File
@@ -1,34 +0,0 @@
# Configuring Port Forwarding
There are two ways to forward ports:
- The Coder CLI port-forward command
- SSH
## The Coder CLI and port-forward
For example:
```console
coder port-forward mycoderworkspacename --tcp 8000:8000
```
For more examples, type `coder port-forward --help`
## SSH
Use the Coder CLI to first [configure SSH](../ides.md#ssh-configuration) on your
local machine. Then run `ssh`. For example:
```console
ssh -L 8000:localhost:8000 coder.mycoderworkspacename
```
## Accessing the forwarded port
After completing either Port Forwarding method, open a web browser on your local
machine to access the Coder workspace process.
```console
http://localhost:<yourforwardedport>
```