microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.62k stars 277 forks source link

forwardPorts to localhost instead of 127.0.0.1 #3928

Closed aaronadamsCA closed 3 years ago

aaronadamsCA commented 3 years ago

If I add "forwardPorts": [8000] to devcontainer.json, this (sometimes?) creates 8000 → 127.0.0.1:8000. But if I type 8000 into the extension UI, this creates 8000 → localhost:8000.

This inconsistency has caused me enough minor problems (e.g. with OAuth redirect_uri whitelisting) that I decided to file this incredibly minor feature request.

aaronadamsCA commented 3 years ago

...I suddenly cannot reproduce this behaviour even though I've noticed it for months, so maybe just revise this to "figure out where the 127.0.0.1 sometimes comes from and stop it"?

chrmarti commented 3 years ago

This should be fixed with https://github.com/microsoft/vscode-remote-release/issues/2711. Make sure you are on the latest version of the extension (0.145.1 for VS Code 1.50).