juhovh / shairplay

Apple airplay and raop protocol server
Other
1.35k stars 228 forks source link

ports required #82

Open wallaceturner opened 5 years ago

wallaceturner commented 5 years ago

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?

devurandom commented 4 years ago

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.

cmyplay commented 4 years ago

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