Skip to content

Port change #3279

May 4, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

You can change ports using the --bind-addr flag or $PORT.

Let' say you want to use 3000. Either of these two options would work:

# option 1, assuming you're serving on localhost
code-server --bind-addr 127.0.0.1:3000

# option 2
PORT=3000 code-server

For the future, you can run code-server --help to see supported flags.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@StarNumber12046
Comment options

@shawywang
Comment options

Answer selected by jsjoeio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants