-
Notifications
You must be signed in to change notification settings - Fork 612
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
Lima binds only on IPv4 #1540
Comments
In general it is completely reasonable that the same port on different interfaces can be bound to different applications. But I can see at least for binding to INADDR_LOOPBACK and INADDR_ANY it makes sense to have an option to forward to INADDR6_LOOPBACK or INADDR6_ANY as well. Is that what you are looking for? Generalizing the issue, here are a couple of questions we should think about:
Mostly unrelated, but it occurred to me that it could be useful to specify a host interface name as the |
After discussion this further on Slack with @heyvito it became clear that the goal is just to support forwarding IPv6 ports to the host, and not about forwarding a single port to multiple interfaces. This will be much simpler and #1538 almost implements this, so should be re-opened. I was just confused because the original PR was trying to forward a single IPv4 port to both an IPv4 and an IPV6 port on the host (which wouldn't work), but that was a bug and not intentional. |
Description
Hey there, folks!
I just stumbled on a rather odd thing, and at the time I wasn't sure what was happening:
Initially, I thought the process was incorrectly indicating that it was listening on the port the container allocated, but no. If I tried to curl to port 3000, I hit the container, but my browser (tested with Arc and Safari) hits the other process!
Upon further inspection (thanks to Colima creator), I understood Lima's port-forwarding mechanism was only binding to the host's IPv4 address, leaving the IPv6 address free, and so allowing other applications to bind to this other address.
After finding this I thought it was just a matter of allowing IPv4 bindings to also use the IPv6 address, but I guess I'm wrong.
PS: I'm totally willing to contribute with code, if it's okay; I woudl need some directions, though.
The text was updated successfully, but these errors were encountered: