shairplay icon indicating copy to clipboard operation
shairplay copied to clipboard

ports required

Open wallaceturner opened this issue 5 years ago • 2 comments

Would you mind detailing what ports are required? I'm successfully able to get it working with the firewall disabled: sudo ufw disable

When i add port 5000 to ufw and re-enable i can see the device connecting and some console output from shaireplay however the music does not play.

Is it possible to have both shairplay working and the firewall enabled?

wallaceturner avatar Sep 01 '19 14:09 wallaceturner

Port TCP:5000 seems to be used for discovery. For control, timing and data, randomly allocated UDP ports are being used: https://github.com/juhovh/shairplay/blob/ce80e005908f41d0e6fde1c4a21e9cb8ee54007b/src/lib/raop_rtp.c#L182-L223

There currently appears to be no way to fix them to a certain range.

devurandom avatar Mar 12 '20 16:03 devurandom

There's a solution over on Mike Brady's support page: https://github.com/mikebrady/shairport-sync/blob/master/TROUBLESHOOTING.md

cmyplay avatar Mar 27 '20 09:03 cmyplay