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

PIO Home not getting shown in remote code-server - Hint #4244

Open
ako82 opened this issue Jan 27, 2025 · 0 comments
Open

PIO Home not getting shown in remote code-server - Hint #4244

ako82 opened this issue Jan 27, 2025 · 0 comments

Comments

@ako82
Copy link

ako82 commented Jan 27, 2025

I didn't know on which of all those issues to respond so I am opening this one here to give my hint:

It's about having code-server and platformIO running in a container on a server and accessing it from a client machine and not getting the PlatformIO Home getting loaded in a tab.

I stumbled over an message in developer tools in Chrome browser which indicated that Chrome was trying to access the PlatformIO Home on host 0.0.0.0 and port 443, no matter how the settings were set in the User / Workspace / Remote setting.

So no matter if the host was set to 127.0.0.1 or 0.0.0.0 and port to 8008 or 0 or something else it doesn't work. The console tab in the developer tools in Chrome browser keeps indicating that Chrome is trying to access PlatformIO Home on 0.0.0.0 and port 443.

Once I had set the container settings to use the host network and configured platformio-ide.pioHomeServerHttpPort in User / Workspace / Remote settings to use port 443, the PlatformIO got loaded and shown in its tab on the website of the remote code-server instance.

I hope this hint helps to fix that issue so that it's possible to use other ports than 443.

Edit:

Additional info:

I just tested if it makes a difference how @id:platformio-ide.pioHomeServerHttpHost is set.

Having that set to 0.0.0.0 doesn't work neither. It has to be set to the IP of the server, on which the container is running on.

Another edit and info:

This is the message that keeps popping up in the Chrome dev tools console:

mainThreadExtensionService.ts:78 [platformio.platformio-ide]connect ECONNREFUSED 0.0.0.0:443

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant