Podman is listening on the wrong port / API is not accessible from outside #25393
-
Hi Here my Python Code:
and here the console output:
The output with 'netstat -ano | findstr :8048' when I start the server with podman is as follows :
and when I start the server with docker the output is as follows:
Podman is only accessible locally and docker is also accessible outside the host computer. Can someone please tell me how to fix this problem? Thank you very much in advance for the tips Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
it might be helpful to post the entire command line you used to run the container in question. If I had to guess, you are running this as rootless and you likely have a firewall. We don't punch holes in your firewall for rootless (i believe this is true). If you run it as rootful, do you get the desired outcome ? |
Beta Was this translation helpful? Give feedback.
-
Hi I have set the machine to rootful, according to podman info the machine is, rootless= false. Its not working, its the same result.
'port forwarding without function (no connection from outside) 'port forwarding only works with port proxy (without a port proxy this does not work either) I then start the Python script with the WebApi manually when the container is running. Yes, there is a firewall on the host computer, but the port is enabled both outgoing and incoming. Do you need more information? Thank you very much in advance for the tips Best regards |
Beta Was this translation helpful? Give feedback.
WSL is an entirely different thing networking wise, it doesn't expose ports to your LAN by default so this is expoected
#17030
https://learn.microsoft.com/en-us/windows/wsl/networking#accessing-a-wsl-2-distribution-from-your-local-area-network-lan