-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Local Companion App - Exposing local port to remote workspace doens't work #6247
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
Comments
I have found where the problem is. Local Companion App do forward from the remote side to the local side with the right ports but use ipv6. However, in my example OpenOCD app uses ipv4. So the Windows reject the connection. When I had tried an app that listens to ipv6, everything had working as expected. |
@ila-embsys was it ipv6 or the fact that localhost is resolving incorrectly? |
use 127.0.0.1 instead and try |
Yes. It worked when I used 127.0.0.1. |
On my system, the hostname "hocalhost" resolves to ipv6 address "::1". So replacing the "localhost" hostname to direct ipv4 address "127.0.0.1" resolves the problem. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Bug description
Steps to reproduce
PS C:\Users\Grit\Downloads> ./'.\gitpod-local-companion-windows (2).exe' --auto-tunnel=false
PS C:\Users\Grit> ssh -F C:\Users\Grit\AppData\Local\Temp\gitpod_ssh_config -R 2331:localhost:2331 blush-coral-ojk0razu
Port still looks like it's exposed in the opposite direction
[4:02 PM] ila: Yes, as I described the same approach works on Linux but is broken on Windows.
Workspace affected
Not applicable
Expected behavior
GDB client should connect to GDB server
Example repository
https://github.com/gitpod-io/gitpod/tree/main/components/local-app
Anything else?
No response
The text was updated successfully, but these errors were encountered: