Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wsl2 podman services can't be seen on localhost 127.0.0.1 #17972

Closed
msillence opened this issue Mar 29, 2023 · 1 comment
Closed

wsl2 podman services can't be seen on localhost 127.0.0.1 #17972

msillence opened this issue Mar 29, 2023 · 1 comment
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@msillence
Copy link

Issue Description

the port exposed by podman doesn't seem to include the ipv4 127.0.0.1 address but does bind to the wsl ip address

podman run -p 8888:80 nginx

can only be seen on the ip address of wsl not on windows 127.0.0.1 address

however running:

podman run -p 127.0.0.1:8888:80 nginx

now works on the windows ipv4 address

Curiously http://localhost:8888 works in chrome so I guess it's bound to the ipv6 localhost

Steps to reproduce the issue

Steps to reproduce the issue

  1. podman run -p 8888:80 nginx
  2. firefox in windows http://localhost:8888 doesn't work
  3. kill it and remove with podman rm -f nginx
  4. podman run --name nginx -p 127.0.0.1:8888:80 nginx
  5. firefox in windows http://localhost:8888 now works

Describe the results you received

unable to connect to localhost or 127.0.0.1

Describe the results you expected

data when connecting to 127.0.0.1

podman info output

$ podman version

Version:      3.4.4
API Version:  3.4.4
Go Version:   go1.17.3
Built:        Thu Jan  1 01:00:00 1970
OS/Arch:      linux/amd64

$ wsl --version
WSL version: 1.1.3.0
Kernel version: 5.15.90.1
WSLg version: 1.0.49
MSRDC version: 1.2.3770
Direct3D version: 1.608.2-61064218
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.19044.2728

Podman in a container

No

Privileged Or Rootless

Rootless

Upstream Latest Release

No

Additional environment details

windows 10

Additional information

happens consitently

@msillence msillence added the kind/bug Categorizes issue or PR as related to a bug. label Mar 29, 2023
@Luap99
Copy link
Member

Luap99 commented Mar 29, 2023

This was fixed in podman v4.2.
Duplicate of #12292

@Luap99 Luap99 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 29, 2023
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Aug 29, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

No branches or pull requests

2 participants