-
Notifications
You must be signed in to change notification settings - Fork 22
DNS for a localhost on my personal machine #44
Comments
hey @KyleJamesWalker 👋 This scenario was not the main focus for the extension, but we definitely want to support this. In fact, unless you have some exotic network setup, it should work already 🤗 Given your local machine's default network interface has a distinct IP address (IP address that is not on any subnets of the network interfaces inside your Codespace), the extension should be able to find route and forward traffic to it. The missing part is the Try this:
If this works for you, you can also add the aforementioned record to the Few questions:
Thanks! |
Thanks for the detailed response, for some reason this isn't working here's what I did:
I'm on a Mac M1 Max and need TCP.
Edit: Additionally I tried all the ip address that came back with |
@KyleJamesWalker thanks for trying it out! Sorry I was not clear enough - you want to find out the IP address of the interface that will forward to the default gateway(aka default interface IP), not the default gateway IP itself. I usually do this: ifconfig | grep "inet " | grep -Fv 127.0.0.1 | awk '{print $2}' Given you've tried all of them, I assume you've also tried the correct one already. As I said this is not yet "officially" supported yet, so it might not work in all cases. I'm looking into adding such support at the moment. If you need
gh codespace ssh -- -R 3000:local:3000 Of course you can use the |
Fantastic this worked perfectly for me! Thank you so much!!!!! |
Is there a way connect to my laptop's machine running a local port?
We use StrongDM to connect to secure system, and the StrongDM node is protected by our VPC. So we need to connect to the VPN and then have StrongDM open a local port. Something like
host.docker.internal
does when needing to connect to your host machine.;TLDR Add dns like
host.gh-net.internal
to connect to ports on your personal machine.The text was updated successfully, but these errors were encountered: