-
-
Notifications
You must be signed in to change notification settings - Fork 578
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
Can't connect from Mojave (10.14.6) to Airplay 2, but can with Airplay 1 #1519
Comments
Thanks for the post. Just to be clear, can you clarify that you are running Shairport Sync in AirPlay 2 mode on Ubuntu on a separate machine (i.e. not on a VM on the Mac) please? On the Ubuntu machine, you should check that a firewall is not blocking ports 319 and 320 -- could that be an issue? (BTW, a |
Thanks Mike. Can confirm, it is bare metal on Ubuntu on a separate machine and not in a container or VM. There is no firewall in the way – I have just checked both ports with netcat and text flows both ways :-) |
Thanks for the update. BTW, the
... because it's UDP and not TCP that's needed for NQPTP. But anyway, this tickled my memory, so it looks like you're out of luck, I'm afraid. My guess is that this is the OpenAirPlay issue too. |
That's really useful and helpful. Thank you. I fear you are probably right – it would be interesting to know if Apple devices "seamlessly downgrade" to airplay 1 or have a different implementation (perhaps deriving the session key algorithmically?). |
Thanks. My guess is that either the session is somehow unencrypted or there is a fixed session key, but TBH I haven’t looked. But I should update the requirements documentation while I think of it! |
This issue has been inactive for 45 days so will be closed 7 days from now. To prevent this, please remove the "stale" label or post a comment. |
First off, thank you so much for making and excellent bit of kit and clearly for the love you've put into this project. It's very nice to see and it is clearly both well-developed and widely used. Please forgive this plea for advice.
The Airplay 1 version of shairport sync works flawlessly for my x86-64 linux host (running Ubuntu 22.04) and OS X 10.14.6 guest (I have 32 bit apps I still use, unfortunately!). The latency is, as you predicted in the documentation, about 2 s, but this is well corrected for by the NTP techniques in Airplay 1.
I've just tried connecting to the development branch using Airplay 2 with the following configuration options:
I have likewise installed the latest version of NQPTP from git, and it is running. If I nmap myself, I do not see the port as open, however – I presume that is by design?
Trying to make a connection mostly works – aside from the actual playing music business as unfortunately I get the dreaded "unable to open connection" error on the mac:
Here's the log from Shairport's point of view – scroll down for that of the mac:
And the output from Console.app:
I feel obliged to note that I can't receive audio from openairplay2 and get a crypto error with them using the same setup (c.f. openairplay/airplay2-receiver#78 – the error is
RTP ChaCha20_Poly1305 decrypt: ValueError('MAC check failed')
)The text was updated successfully, but these errors were encountered: