From d54f6fe04576b96fd2915d3f357b34f9662a6dc5 Mon Sep 17 00:00:00 2001 From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Sun, 9 Oct 2022 08:29:57 +0100 Subject: [PATCH] Update TROUBLESHOOTING.md --- TROUBLESHOOTING.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/TROUBLESHOOTING.md b/TROUBLESHOOTING.md index d6436fdf..b9a64138 100644 --- a/TROUBLESHOOTING.md +++ b/TROUBLESHOOTING.md @@ -116,6 +116,16 @@ You have installed Shairport Sync successfully, the daemon is running, you can s You have to allow connections to your Shairport Sync device from remote devices. To do so, after re-enabling UFW (see last step of the previous section), enter the following commands in shell: +**Classic AirPlay:** +``` +sudo ufw allow 3689/tcp +sudo ufw allow 5353 +sudo ufw allow 5000/tcp +sudo ufw allow 6000:6009/udp +sudo ufw allow 32768:60999/udp +``` + +**AirPlay 2:** ``` sudo ufw allow 319:320/udp sudo ufw allow 3689/tcp @@ -123,9 +133,11 @@ sudo ufw allow 5353 sudo ufw allow 5000/tcp sudo ufw allow 7000/tcp sudo ufw allow 6000:6009/udp -sudo ufw allow 35000:65535/udp +sudo ufw allow 32768:60999/udp +sudo ufw allow 32768:60999/tcp ``` -Ports 319 and 320 need to be opened for AirPlay 2 only. + +The range `32768:60999` represents the [ephemeral port range](https://en.m.wikipedia.org/wiki/Ephemeral_port) which seems to be standardised on those values. You can check UFW config by typing `sudo ufw status` in shell. Please make sure that UFW is active, especially if you have deactivated it previously for testing purposes. Check out the [ufw man pages](http://manpages.ubuntu.com/manpages/man8/ufw.8.html) for more.