VSCode Remote SSH still listens on a loopback localhost
address even with "remote.localPortHost": "allInterfaces"
#10734
Labels
ssh
Issue in vscode-remote SSH
Remote-SSH Log
Remote-SSH Log
Expected Behavior
I expect that with
"remote.localPortHost": "allInterfaces"
there would be a process listening on0.0.0.0
(or "IPv4 unspecified" in Windows terminology) on the configured port on my machine.Actual Behavior
Code.exe
is listening on loopback, thus I can't access the forwarded port through my private IP address from my local wifi network. This is what I see in Resource Monitor:Steps To Reproduce
"remote.localPortHost": "allInterfaces"
in Usersettings.json
both locally and on the remote host (I don't know where exactly it should be configured, so I configured both):Local:
Remote:
http://localhost:8080
ipconfig
or in your local WiFi web console. Mine, for example is192.168.1.224
.http://{your_pc_private_ip}:8080
🔥Code.exe
is listening on for port 8080 (see screenshot in "Actual Behavior"). It will say "IPv4 loopback", which is the core problem. It should say "IPv4 unspecified" since we configured"remote.localPortHost": "allInterfaces"
Anything else?
Everything works fine in my setup if I just forward the port manually via the SSH command:
In this case, I can access my web server via my PC's private IP and this is what I see in Resource Monitor:
The text was updated successfully, but these errors were encountered: