This message was deleted.
# rancher-desktop
a
This message was deleted.
🦜 1
❤️ 2
👍 1
w
Is the intent that host.rancher-desktop.internal be used for the k3s endpoint and other cluster endpoints? So I can add that to my no_proxy (or you may have already) to keep intra VM traffic inside and not trying to head out to internet egresses?
f
No,
host.rancher-desktop.internal
is just another alias to access the host from inside the VM. It has the same value as
host.docker.internal
. But yes, it should be in
no_proxy
as well.
w
yeah just didn’t know if those IP flows in the k3s network would start using that namespace vs the IP directs. on macOS it’s not been an issue, but WSL i track flows egressing the distro to the proxy since I can’t limit WSL2 down to a specific IP space without other bits on top of the generic stack
l
I am still unable to ping
host.docker.internal
to resolve my host machine. I am on Windows 11 and Rancher-Desktop version
1.6.2
with
dockerd
and Kubernetes version
v1.24.4
😞 Do I need any additional configuration for that to work? I assumed that accessing my host via that address works out-of-the-box
f
@loud-megabyte-65691 Is the problem that the name doesn't resolve, or that the address isn't routable? The former should be fixed in 1.6.1+. The latter would be a different issue. I don't know if
ping
actually works, but can you connect via
curl
? Are you using proxy settings? Could this be a VPN issue?
l
Hm with
curl
to
host.docker.internal
I get the blue IIS page HTML back so that resolves and works, but when I try to connect to something running on a specific port, for instance my local Seq logging server which runs on port 5341,
curl
to
host.docker.internal:5341
does nothing. Same result for applications running on other ports. I don't use any proxy settings. Being on my company's VPN doesnt seem to make a difference.
f
@calm-sugar-3169 Could this be a firewall issue?
c
I will take a look shortly, in a meeting currently
@loud-megabyte-65691 what does it do when you
ping host.docker.internal
? does it just hang?
l
Yea it just hangs. Pinging something on the internet like google.com works just fine.
c
can you run
New-NetFirewallRule -DisplayName "WSL" -Direction Inbound -InterfaceAlias "vEthernet (WSL)" -Action Allow
and try pinging again?
this firewall rule above allows the traffic from
wsl
interface into the host network
l
Works like a charm! Both
ping
to
host.docker.internal
and
curl
to
host.docker.internal:5341
are working.
👍 1
Can / will you fix this in de next Rancher-Desktop release?
c
I believe we have this document and it’s currently up to users discretion to run or not. @fast-garage-66093 do you we want to run this rule as part of Privileged Service?
f
I want to have a Preferences setting to make it automatically (but not by default), and I want a diagnostic to inform you when the firewall is currently blocking the connection. I'll create a Github issue for it.
Just to be explicit: this will not be in the next release yet
l
👌