Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Access ports on workspace from web browser #2432

Closed
@bpmct

Description

@bpmct

Once a workspace is created, developers will need to access arbitrary ports on their workspace to preview web apps they are developing. With desktop IDEs and SSH, there are methods to access these ports. However, using the web (code-server) isn't possible.

Lame MVP:

  • Web UI on workspace page to access port
          ┌──────────┐ ┌──────┐
    Port  │ 8080     │ │ Go   │
          └──────────┘ └──────┘
    
  • Open in new tab
  • Path-based access (e.g dev.coder.com/@bpmct/myworkspace/port/8080)
  • Subdomain-based access (e.g bpmct-myworkspace-8080.dev.coder.com)
    • Many apps are extremely hard to configure to run on a path or don't work (e.g create-react-app)
  • Only reachable to the developer or Coder superadmin

Workaround:

  • If code-server is present,manually navigate to port proxy

     https://dev.coder.com/@bpmct/myworkspace/apps/code-server/proxy/3000
      # or 
     https://dev.coder.com/@bpmct/myworkspace/apps/code-server/absproxy/3000
  • Use ngrok or similar service within the workspace

  • Use SSH or desktop IDE to port forward to local machine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions