Open chris-vroegop-lloyds opened 5 months ago
A friendly reminder that this issue had no activity for 30 days.
I get the same result Alpine Linux on bare metal, i.e., no virtualization and no WSL. It works as expected with Docker.
I get the same result Alpine Linux on bare metal
This should work fine on linux both rootless and as root
$ sudo bin/podman run -d -p 127.0.0.2:8080:80 nginx
6489dce2d37248338a0dd47735f0259143ee18b3bb0b9a3054a222e102daba25
$ curl 127.0.0.2:8080
<!DOCTYPE html>
...
Windows WSL is however a whole other story. We do not do port forwarding on the windows side that is all handled by the WSL build in forwarding logic and if this doesn't support other loopback addresses then this is not something we can fix. There would be the way to use a user space forwarder there which might be what docker is doing but I am not sure how much work this would be
Issue Description
Ports forwarded on loopback addresses other than 127.0.0.1 are not available on Windows host
Steps to reproduce the issue
Run the following
Describe the results you received
From a browser in the Windows host, I can see an nginx page at
http://127.0.0.1
but I get ERR_CONNECTION_REFUSED athttp://127.0.0.2
.Describe the results you expected
In the latest Docker Desktop, if I run
I can see nginx pages at
http://127.0.0.1
andhttp://127.0.0.2
.podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
No response
Additional information
I suspect this is a WSL2 networking issue.