From 6f8dba723249ff0d7508d52085f0e5bd3ae2f7ce Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Tue, 24 Aug 2021 15:16:01 -0700 Subject: [PATCH] docs: add how to change port --- docs/FAQ.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/FAQ.md b/docs/FAQ.md index e5947acf0..8ade51ce7 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -29,6 +29,7 @@ - [What's the difference between code-server and VS Code Codespaces?](#whats-the-difference-between-code-server-and-vs-code-codespaces) - [Does code-server have any security login validation?](#does-code-server-have-any-security-login-validation) - [Are there community projects involving code-server?](#are-there-community-projects-involving-code-server) +- [How do I change the port?](#how-do-i-change-the-port) @@ -399,3 +400,10 @@ minute plus an additional twelve per hour. Visit the [awesome-code-server](https://github.com/cdr/awesome-code-server) repository to view community projects and guides with code-server! Feel free to add your own! + +## How do I change the port? + +There are two ways to change the port on which code-server runs: + +1. with an environment variable e.g. `PORT=3000 code-server` +2. using the flag `--bind-addr` e.g. `code-server --bind-addr localhost:3000`