Skip to content

Incorrect reporting in the terminal when --port 0 is used #779

@PEERCRED

Description

@PEERCRED
  • code-server version: v1.1156-vsc1.33.1
  • OS Version: Ubuntu 18.04

Description

When started with --port 0 (-p 0) option, code-server does not show the actual port the kernel allocated for it:

INFO  Started (click the link below to open):
INFO  http://localhost:0/

Compare with, for example, python simple http server:

$ python3 -m http.server 0
Serving HTTP on 0.0.0.0 port 41051 (http://0.0.0.0:41051/) ...

Steps to Reproduce

Start code-server with -p 0 option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions