Codespaces: private port forwarding fails while another private port works #211431
Replies: 2 comments
|
I’d try adding port 16032 manually from the PORTS tab first. Make sure nothing else is using it, then enter 16032 under Add Port and keep its visibility set to Private. No need to rebuild or restart the Codespace, especially since the existing preview is working. If it still fails, I’d leave the working setup alone and check GitHub’s port forwarding troubleshooting docs before trying anything more disruptive. |
Hey @firstjuregg-svg, I’ve run into similar things. Here are some safe things to try that won’t touch your working preview:
If 16032 shows up as stale or stuck, you can remove it there and add it again.
If none of this works, try a different port number (like 5173) for the second app. That avoids the stuck 16032 entry without touching the working one. Hope this helps! |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Question
Body
In an existing Codespace using VS Code web, private port 16031 works. A separate Vite process listened on 127.0.0.1:16032 and returned HTTP 200 for /login locally.
One attempt to forward localhost:16032 failed. The UI reported that the host might be unavailable or the port already forwarded. No 16032 entry appeared in PORTS.
An official Codespaces log export did not establish a specific refusal code or root cause. The new Vite process was stopped; the working preview was preserved.
What minimal, non-destructive recovery is recommended without rebuilding the Codespace, interrupting the working preview, or making any port public?
All reactions