Skip to content

[Bug]: Changing Port #5450

Description

@FrancyMak

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Opera
  • Local OS: Windows 10
  • Remote OS: Ubuntu
  • Remote Architecture: amd64
  • code-server --version: 4.5.1

Steps to Reproduce

Good evening, I successfully managed to install code-server on my dedicated Ubuntu 22.04 LTS on port 8080 which I left free only for the first boot of code-server.

I followed the commands in your documentation for changing the port, but every time it resets and returns to 8080 even though I start it this way code-server --bind-addr localhost:3000 or this way PORT=3000 code-server or even editing the config file (where the password is saved). How can I make this change permanent?

Expected

It should start on the selected port

Actual

It always starts on the 8080 creating problems for other connections.

Logs

No response

Screenshot/Video

No response

Does this issue happen in VS Code or GitHub Codespaces?

  • I cannot reproduce this in VS Code.
  • I cannot reproduce this in GitHub Codespaces.

Are you accessing code-server over HTTPS?

  • I am using HTTPS.

Notes

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageThis issue needs to be triaged by a maintainer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions