Subdomain port forwarding on local ssh connection
Hello! I've setup my coder instance and it is working great! One cool feature I'm using a bunch is having coder create a custom subdomain (on
*.coder.mydomain.com
) that points to a port running on my environment (an API running on 3000 for example).
That works great when I use either the browser text editor or the browser terminal since if I CTRL + Click
on the 127.0.0.1:XXXX
link on the terminal, I get sent to the custom subdomain created for that. But when I connect to my workspace via SSH locally and run a service that exposes a port, I can't get the proxied URL easily since if I click the link, I get sent to my machine's localhost
.
Is there a way to work around that?
I've attached a video illustrating my issue. First I run a service on the online terminal and ctrl+clicking on the link gets me to the proxied url. Then I do the same for a local SSH connection and I can't get to the proxied url.5 Replies
<#1277261652693090324>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Video illustrating this
I see that with VS Code locally it auto forwards my localhost:3000 to the workspace's port 3000. But I still wish I could do that with a local SSH connection
Found out about
coder port-forward
command. Works fine!user has left the server
@Phorcys closed the thread.