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

only listens on one IP #4

Open
karlp opened this issue Mar 2, 2020 · 2 comments
Open

only listens on one IP #4

karlp opened this issue Mar 2, 2020 · 2 comments

Comments

@karlp
Copy link

karlp commented Mar 2, 2020

This is a problem in the original upnpbeacon too. (and it's not a big deal, but reporting for completeness after testing this one too)

If you have two ip addresses on an interface, u2pnpd will only listen on one of them. I would think that without specifying an interface or an IP, it should listen to 0.0.0.0. (This may be a problem in libupnp, but it manifests in the apps themselves)

@mhei
Copy link
Owner

mhei commented Mar 4, 2020

Seems to be an issue in libupnp for quite a long time: https://sourceforge.net/p/pupnp/feature-requests/21/
And looking at the API, I do not see a way to workaround it.

When I understand it correctly, then libupnp does not provide the required internal infrastructure to distinguish between various addresses of the same type (i.e. multiple IPv4 addresses), it only differentiates between IPv4 vs IPv6.

I'll leave this issue open as a reminder, and when I find time I consider to have a deeper look at libupnp - but to be honest, it will be only low priority. But thanks for reporting so far, I did not yet noticed this as my requirements and tests were only "simple" setups and mostly IPv4 only.

@karlp
Copy link
Author

karlp commented Mar 4, 2020

Totally understand :) It's just something I'd run across in upnpbeacon, and was hoping your "improved" version would just magically fix some things for me. They're not a big deal, it just took me a while to figure out what was wrong the first time I had two IPs on an interface :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants