WSL+VSCode: bun index.html server inaccessible via port forwarding (discussion before filing issue)
#25540
TNTSuperMan
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Since the reproducibility is not sufficient to file an Issue, I would like to start a discussion here.
When running
bun index.htmlinside WSL2 via VSCode Remote, the server starts and VSCode automatically sets up port forwarding. However, accessing it from the host (Windows 10) results in anERR_CONNECTION_RESETerror.But when I ran a command like
curl http://localhost:3000on the WSL machine, it returned a successful response.In contrast, when running a script server such as
bun index.ts(using Bun.serve), the server works fine and can be accessed normally.My assumption is that this might be a bug in Bun, but due to the complexity of port forwarding and environment differences, reproducibility may be difficult. Therefore, I would like to discuss the details here before filing an Issue.
Environment
Beta Was this translation helpful? Give feedback.
All reactions