mirror of
https://github.com/coder/coder.git
synced 2026-06-07 06:58:17 +00:00
2bd6d2908e
I'm sorry.
35 lines
1.3 KiB
Plaintext
35 lines
1.3 KiB
Plaintext
Usage: coder port-forward [flags] <workspace>
|
|
|
|
Forward ports from machine to a workspace
|
|
|
|
Aliases: tunnel
|
|
|
|
- Port forward a single TCP port from 1234 in the workspace to port 5678 on
|
|
your local machine:
|
|
|
|
[;m$ coder port-forward <workspace> --tcp 5678:1234[0m
|
|
|
|
- Port forward a single UDP port from port 9000 to port 9000 on your local
|
|
machine:
|
|
|
|
[;m$ coder port-forward <workspace> --udp 9000[0m
|
|
|
|
- Port forward multiple TCP ports and a UDP port:
|
|
|
|
[;m$ coder port-forward <workspace> --tcp 8080:8080 --tcp 9000:3000 --udp 5353:53[0m
|
|
|
|
- Port forward multiple ports (TCP or UDP) in condensed syntax:
|
|
|
|
[;m$ coder port-forward <workspace> --tcp 8080,9000:3000,9090-9092,10000-10002:10010-10012[0m
|
|
|
|
[1mOptions[0m
|
|
-p, --tcp string-array, $CODER_PORT_FORWARD_TCP
|
|
Forward TCP port(s) from the workspace to the local machine.
|
|
|
|
--udp string-array, $CODER_PORT_FORWARD_UDP
|
|
Forward UDP port(s) from the workspace to the local machine. The UDP
|
|
connection has TCP-like semantics to support stateful UDP protocols.
|
|
|
|
---
|
|
Run `coder --help` for a list of global options.
|