-
Notifications
You must be signed in to change notification settings - Fork 273
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
Forwarded port hangs indefinitely #9968
Comments
The issue does seem to be at least partially dependent on the underlying server process. For example, the forwarded port connects fine to the |
I've figured out a workaround: container users need to specify the IP address the dev server should listen on. In the case of Webpack and Vite, the command line option is the same: So this isn't really an issue per se with port forwarding, but I do think there are some improvements that would make the problem more clear to the developer. Some suggestions/ideas @chrmarti :
I'll leave the issue open in case we want to make any UX improvements, but feel free to close if not. |
I think without |
Support for ipv6 is tracked here: #7029 |
The issue also occurs on VSCode Insiders:
Local OS Version: macOS Sonoma 14.5
Remote OS Version: Official Node.js dev container image published by Microsoft:
mcr.microsoft.com/devcontainers/javascript-node:20
Remote Extension/Connection Type: Containers
Logs:
Steps to Reproduce:
mcr.microsoft.com/devcontainers/javascript-node:20
npm install
andnpm run dev
to start the server. VS Code will detect and automatically forward the dev server port.localhost:<forwarded port>
in the browser. Observe the page hangs forever.From within the container, you can
curl localhost:<forwarded port>
and see that the dev server returns the HTML string as expected. But server never responds when requested from outside the container.Does this issue occur when you try this locally?: N/A
Does this issue occur when you try this locally and all extensions are disabled?: N/A
The text was updated successfully, but these errors were encountered: