Skip to content

VS Code port forwarding stops working after some time #13726

Open
@jaaydenh

Description

@jaaydenh

Repo Steps (For MacOS)

  1. Have a running workspace with an auto-forwarded port setup for to serve a site for frontend development e.g. 8080,3000
  2. Leave it for 30+ mins, the computer should go to sleep during this time (may also occur without sleeping but less reliable)
  3. When returning to VS Code you will see a dialog about reconnecting in one of the 3 possible varieties shown below
  4. When returning to the site hosted at 8080, the site will no longer load
  5. In VS Code, manually stop forwarding port 8080
  6. In VS Code, manually add port 8080, the site at port 8080 will usually load at this point. Sometimes this does not work and a workspace restart is necessary to resolve the port forwarding.

The expectation is that it is not necessary to re-forward the ports or to restart the workspace.

Screenshot 2024-06-27 at 8 21 36 PM Screenshot 2024-06-27 at 9 56 35 AM Screenshot 2024-06-28 at 9 37 18 AM

Metadata

Metadata

Assignees

No one assigned

    Labels

    customer-reportedBugs reported by enterprise customers. Only humans may set this.need-backendIssues that need backend works2Broken use cases or features (with a workaround). Only humans may set this.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions