vscode-remote-release icon indicating copy to clipboard operation
vscode-remote-release copied to clipboard

code-server serve-local with --host switch doesn't work well on hosts with multiple IPs

Open marmolak opened this issue 3 years ago • 0 comments
trafficstars

  • VSCode Version: code-1.71.2-1663191299.el7.x86_64
  • Local OS Version: Fedora 36
  • Remote OS Version: Fedora 36
  • Remote Extension/Connection Type: Server
  • Logs: Provided after reproducer

There is not intuitive behaviour when host with multiple A records were used as a --host argument.

Steps to Reproduce:

  1. install code-server from: https://code.visualstudio.com/blogs/2022/07/07/vscode-server via:
wget -O- https://aka.ms/install-vscode-server/setup.sh | sh
  1. Try to start with:
code-server serve-local --disable-telemetry --host bigoook.local

Result:

Server bound to 172.17.0.1:8000 (IPv4)
Extension host agent listening on 8000

Web UI available at http://localhost:8000/?tkn=ca69db51-223f-4447-8f0c-f70d1d984678
[14:57:25] Extension host agent started.

bigoook.local is name provided by avahi mDNS:

$ dig bigoook.local
...
bigoook.local.          0       IN      A       192.168.32.101
bigoook.local.          0       IN      A       192.168.200.9
bigoook.local.          0       IN      A       172.18.0.1
bigoook.local.          0       IN      A       172.17.0.1
...

Does this issue occur when you try this locally?: Yes Does this issue occur when you try this locally and all extensions are disabled?: Yes

marmolak avatar Sep 16 '22 13:09 marmolak