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

Skip to content

Access ports on workspace from web browser #2432

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bpmct opened this issue Jun 16, 2022 · 1 comment
Closed

Access ports on workspace from web browser #2432

bpmct opened this issue Jun 16, 2022 · 1 comment

Comments

@bpmct
Copy link
Member

bpmct commented Jun 16, 2022

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

@bpmct
Copy link
Member Author

bpmct commented Jul 22, 2022

Closing as duplicate of #1624

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants