Skip to content

Commit d0ca3ae

Browse files
authored
Merge pull request #4031 from cdr/jsjoeio-ports-docs
docs: add how to change port
2 parents ea1b3a7 + 6f8dba7 commit d0ca3ae

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/FAQ.md

+8
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
- [What's the difference between code-server and VS Code Codespaces?](#whats-the-difference-between-code-server-and-vs-code-codespaces)
3030
- [Does code-server have any security login validation?](#does-code-server-have-any-security-login-validation)
3131
- [Are there community projects involving code-server?](#are-there-community-projects-involving-code-server)
32+
- [How do I change the port?](#how-do-i-change-the-port)
3233

3334
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
3435

@@ -399,3 +400,10 @@ minute plus an additional twelve per hour.
399400
Visit the [awesome-code-server](https://github.com/cdr/awesome-code-server)
400401
repository to view community projects and guides with code-server! Feel free to
401402
add your own!
403+
404+
## How do I change the port?
405+
406+
There are two ways to change the port on which code-server runs:
407+
408+
1. with an environment variable e.g. `PORT=3000 code-server`
409+
2. using the flag `--bind-addr` e.g. `code-server --bind-addr localhost:3000`

0 commit comments

Comments
 (0)