-
Notifications
You must be signed in to change notification settings - Fork 23
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
Suggestion: Bind NQPTP_CONTROL_PORT to localhost instead of NULL #14
Comments
Thanks for the suggestion -- it's a good idea alright! |
Actually, if you had some code suggestions, that would be great 🙂. |
Here is the Code I use ...
... in nqptp.c
|
Great, thanks! |
Any chance of getting this merged? |
Thanks for the post. Yeah, I can set about it. |
Just pushed that update into the As a matter of interest, is this change important to your setup? |
I just don't wanna run a service as root with open ports to everyone inside the network (but on Linux I am now runnning it as a user via setcap as described in #12). Change seems to work for me, thank you! |
Hi @mikebrady, just doing a bit of digging in trying to solve an issue that I've come up with trying to get a multi shairport-sync instance setup working in docker using @noelhibbard's scripts: noelhibbard/shairport-sync-docker#2 I have a feeling that this change might be some how related to the issue i'm trying to fix, any thoughts? Thanks :) |
Hi @modafroman. Thanks for the note. The effect of this change to NQPTP was to require UDP messages received by NQPTP to come from Shairport Sync on the same system rather than from any computer on the network. So, on the face of it, it doesn't seem likely to be a cause of problems. Of course I could be wrong -- would there be any more evidence that might suggest a cause? |
Thanks Mike, no worries I'll keep doing some digging. It might just be something as simple as the docker network config being wrong or just my weird edge case install. |
Hi @modafroman. There was an issue discovered, that in some situations the ports had to be open both in IPv4 and IPv6. The fix is in the |
Hello,
from what I understand from the code of nqptp and shairport-sync, nqptp listens as Server to Port 9000 and shairport-sync talks to port 9000.
Lets assume that nqptp and shaiport-sync run always on the same host/system/container - but I am not sure if this assumption is always valid - then it would be ideal, if nqptp would listen only on localhost instead on any interface.
I tested this successfully with very few quick hack changes to nqptp.c and nqptp-utilities(.c | .h).
The text was updated successfully, but these errors were encountered: