You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to connect to my host machine from inside my dev.container - which I assume is just a docker instance running a specific image ... powered by Rancher Desktop.
I just can't access anything in my host.
for example:
curl -v "http://host.docker.internal:5000/api/profile"
* Trying 172.17.0.1:5000...
* connect to 172.17.0.1 port 5000 failed: Connection refused
* Failed to connect to host.docker.internal port 5000 after 1 ms: Couldn't connect to server
* Closing connection 0
curl: (7) Failed to connect to host.docker.internal port 5000 after 1 ms: Couldn't connect to server
From the host machine (win11) i can see i'm binding to all:
Get-NetTCPConnection -LocalPort 5000 | Format-Table LocalAddress, LocalPort, State
LocalAddress LocalPort State
------------ --------- -----
0.0.0.0 5000 Listen
Can this be done with dev.containers + Rancher Desktop?
I don't have k8's installed because I thought that was going to be an overkill, here?
EDIT: OH! i forgot to say i also modded the firewall based off the docs here:
New-NetFirewallRule -DisplayName "WSL" -Direction Inbound -InterfaceAlias "vEthernet (WSL (Hyper-V firewall))" -Action Allow
Name : {72b9473e-0b9c-42b2-b977-b3a4adca7dd8}
DisplayName : WSL
Description :
DisplayGroup :
Group :
Enabled : True
Profile : Any
Platform : {}
Direction : Inbound
Action : Allow
EdgeTraversalPolicy : Block
LooseSourceMapping : False
LocalOnlyMapping : False
Owner :
PrimaryStatus : OK
Status : The rule was parsed successfully from the store. (65536)
EnforcementStatus : NotApplicable
PolicyStoreSource : PersistentStore
PolicyStoreSourceType : Local
RemoteDynamicKeywordAddresses : {}
PolicyAppId :
PackageFamilyName :
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi folks,
I'm trying to connect to my host machine from inside my dev.container - which I assume is just a docker instance running a specific image ... powered by Rancher Desktop.
I just can't access anything in my host.
for example:
From the host machine (win11) i can see i'm binding to all:
Can this be done with dev.containers + Rancher Desktop?
I don't have k8's installed because I thought that was going to be an overkill, here?
EDIT: OH! i forgot to say i also modded the firewall based off the docs here:
Beta Was this translation helpful? Give feedback.
All reactions