Skip to content
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

port forwarding failing - No forwarded ports #957

Open
IntranetFactory opened this issue Mar 11, 2024 · 3 comments
Open

port forwarding failing - No forwarded ports #957

IntranetFactory opened this issue Mar 11, 2024 · 3 comments
Assignees

Comments

@IntranetFactory
Copy link

IntranetFactory commented Mar 11, 2024

I have the following devcontainer.json to run Playwright tests and to inspect the web browser with devcontainer VNC Desktop Lite:

{
  "name": "Playwright Testing",
  "image": "mcr.microsoft.com/playwright:jammy",
  "forwardPorts": [
    9323,
    6080
  ],
  "portsAttributes": {
    "6080": {
      "label": "desktop"
    }
  },
  "features": {
    "ghcr.io/devcontainers/features/desktop-lite:1": {}
  },
  "postCreateCommand": "npm install && npx playwright install",
  "customizations": {
    "vscode": {
      "extensions": [
        "ms-playwright.playwright"
      ]
    }
  }
}

When I open that repo with GitHub Codespace I see the expected VNC port 6080

image

When I open with DevPod in a workspace with VS Code on Windows 11 I see no ports:

image

Should I see port 6080 also when using DevPod ?

@pascalbreuninger
Copy link
Member

Hi @IntranetFactory, even though you're not seeing the port it should still forward it. Could you confirm that's not the case?

@linear linear bot added the wait-on-user label Mar 11, 2024
@IntranetFactory
Copy link
Author

I'm sorry, I didn't check that - you are right http://127.0.0.1:6080/ opens the noVNC viewer. So is it expected that the PORTS tab remains empty?

@pascalbreuninger
Copy link
Member

At least it works, that's something :) For me it shows up sometimes and sometimes it doesn't, haven't figured out how to advertise the ports consistently to VSCode. Maybe this issue is a nice opportunity to dig into it

@pascalbreuninger pascalbreuninger self-assigned this Mar 15, 2024
@deniseschannon deniseschannon added the bug Something isn't working label May 8, 2024 — with Linear
@deniseschannon deniseschannon removed bug Something isn't working kind/bug labels May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants