Skip to content

Run Integrated Browser in remote environment #293229

Closed

Description

The integrated browser would be extremely useful if it ran in the remote environment like SSH, tunnel, devcontainer, WSL, etc.

It would allow to access servers that can only be accessed from within the remote environment without having to rely on some other remote desktop tool or even gimmicks like sshuttle.

Activity

  1. added
    browser-integration
    feature-request
    on Feb 5, 2026
  2. vs-code-engineering commented on Feb 5, 2026

    @vs-code-engineering
    Contributor

    This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  3. auno commented on Mar 23, 2026

    @auno

    Another use case would be when working with static websites without a server component. Currently, navigating to file:///foo/bar would try to open the file /foo/bar locally instead of in the remote environment.

  4. vs-code-engineering commented on Mar 28, 2026

    @vs-code-engineering
    Contributor

    This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  5. auno commented on Mar 31, 2026

    @auno

    I would also argue that this feels more like a bug than a feature request to me. When connecting to a remote host through the Remote Development extension, all other resources are accessed through the remote host. Thus, it stands to reason that the integrated browser should too for consistency.

  6. changed the title [-]Run Integrated Browser in Remote environment[/-] [+]Run Integrated Browser in remote environment[/+] on Mar 31, 2026
  7. mrbernardi commented on Mar 31, 2026

    @mrbernardi

    This indeed is a nice feature to have!

  8. 10 remaining items

  9. kycutler commented on Jun 12, 2026

    @kycutler
    Collaborator

    Hey folks! Proxying http/https requests in remote workspaces is available now in Insiders (and next Stable) behind the setting workbench.browser.enableRemoteProxy. We'll let that stabilize for a bit to work out any issues and then start enabling it by default.

    Note that file support will be handled separately; I opened #321240 to track that work.

    Please try it out and report any issues. Thanks!

  10. observingClouds commented on Jun 15, 2026

    @observingClouds

    Hi Kyle Cutler (@kycutler),

    Thank you very much for implementing this feature. I gave it a try and opening a webpage hosted on the remote (aka localhost:8000) via the integrated browser works now 🎉 . What does not work however, is to also access webpages available within the network of the remote machine, e.g. some intranet page that is only available on the remote. For those pages I get a ERR_TIMED_OUT (-7) when having workbench.browser.enableRemoteProxy = True, while previously it was immediately returning ERR_NAME_NOT_RESOLVED (-105). It would be great if those requests could also be successfully proxied. Please let me know if I should open a separate issue and provide a few more details.

  11. auno commented on Jun 15, 2026

    @auno

    What does not work however, is to also access webpages available within the network of the remote machine, e.g. some intranet page that is only available on the remote.

    Another example of this would be Docker containers running on the remote host accessed as through over the network rather than exposed ports on localhost.

  12. kycutler commented on Jun 15, 2026

    @kycutler
    Collaborator

    Hauke Schulz (@observingClouds) thanks for giving it a try! Can you make sure you're using latest Insiders? The timeouts shouldn't be happening anymore (though the error codes will be a bit different due to the nature of the proxy).

    More information about the remote hosts you're trying to reach would be helpful. Everything should be proxied through the remote machine, so I'm not sure why some hosts wouldn't be working.

  13. observingClouds commented on Jun 15, 2026

    @observingClouds

    Kyle Cutler (@kycutler) thanks for your quick response. Insiders was already on latest:

    Version: 1.125.0-insider (Universal)
    Commit: fd0fbb3f5bf3dafc048826e300f0e6b1888af2bd
    Date: 2026-06-14T17:53:56-07:00
    Electron: 42.2.0
    ElectronBuildId: 14159160
    Chromium: 148.0.7778.97
    Node.js: 24.15.0
    V8: 14.8.178.14-electron.0
    OS: Darwin x64 22.6.0
    

    My general setup/workflow:

    • Remote linux server that is within VPN
    • Running ./code tunnel on linux server when connected to VPN
    • Disconnect from VPN
    • Start Insiders on local MacBook and connect to tunnel via GitHub
    • ping intranet.X.Y in Insiders terminal works
    • open intranet.X.Y in integrated browser does not work

    On the remote I use the latest standalone code tunnel:

    $ ./code --version
    code 1.124.2 (commit 6928394f91b684055b873eecb8bc281365131f1c)
    

    Edit: I sometimes get ERR_EMPTY_RESPONSE (-324) instead of ERR_TIMED_OUT (-7) as well.

  14. kycutler commented on Jun 15, 2026

    @kycutler
    Collaborator

    Ah, the tunnel server should use the same version as there are changes on both sides to make this work. Can you try installing latest Insiders on the remote machine and using code-insiders --tunnel? That should at least fix the timeouts, and potentially the not found issue.

    If it persists can you also try running this in the remote terminal: node -e "require('net').createConnection({ host: '<your-host-here>', port: 80 })" and see if that errors out?

  15. kycutler commented on Jun 15, 2026

    @kycutler
    Collaborator

    Hauke Schulz (@observingClouds) it looks like Linux has some issues still. Tracked in #321440, thanks for the info you shared!

  16. observingClouds commented on Jun 16, 2026

    @observingClouds

    Just FYI: I used now the code-insiders tunnel and updated insiders to the latest again and continue to have the same issues.

  17. kycutler commented on Jun 17, 2026

    @kycutler
    Collaborator

    Hauke Schulz (@observingClouds) would you mind trying again with the latest insiders? I made some improvements and hoping it will fix your issue. If not can you try this code in a terminal:

    node -e "require('net').createConnection({ host: '<your-host-here>', port: 80 })"
    

    And check the Output panel -> both Extension Host and Server logs for error messages:
    Image

  18. observingClouds commented on Jun 18, 2026

    @observingClouds

    Kyle Cutler (@kycutler) thanks for your continued efforts. After updating both the VSCode Insiders CLI on the remote as well as on my local machine, the issue remains. I figured now however that port 80 of the host seems to be not reachable from the remote machine (telnet times out). I switched to another machine within the internatl network and there it works. So, this is an internal issue. Thank you.

  19. locked and limited conversation to collaborators on Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

browser-integrationfeature-requeston-testplan

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions