Skip to content

Implement automatic port forwarding #2

Closed
@Kira-Pilot

Description

@Kira-Pilot
Member

VS Code automatically port forwards by grabbing the relevant host and port from stdout, whereas JetBrains only detects and suggests ports to forward. We should add the automatic port forwarding behavior VS Code has so this doesn't trip up users.

Requirements:

  • Preferably use the JetBrains API, falling back to the terminal, and lastly to netstat to determine host:port combo for port forwarding
    Ensure the detected port is correctly displayed in the IDE's port forward panel. If the port forward panel is unavailable, provide a fallback mechanism to inform the user via a notification within the IDE.
  • Explore error handling if there is a port conflict on the client machine.
    • If port is occupied, it chooses some other random port.

Nice-to-Haves:

  • If the port detected is a privileged port, offer to the user the option to forward to a non-privileged port.
    • Like an occupied port, forwards to a random port.

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @Kira-Pilot@code-asher

      Issue actions

        Implement automatic port forwarding · Issue #2 · coder/jetbrains-backend-coder