Skip to content
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

[Problem]: Audio Does not work across different vlans / subnets #1953

Closed
1 of 2 tasks
Jphannon1 opened this issue Jan 14, 2025 · 7 comments
Closed
1 of 2 tasks

[Problem]: Audio Does not work across different vlans / subnets #1953

Jphannon1 opened this issue Jan 14, 2025 · 7 comments

Comments

@Jphannon1
Copy link

What happened?

My iPhone is on a different Vlan to the RPI, and when i check airplay devices it appears, however when i cast to it there is no audio. This isnt a network issue as I have 5 other airplay devices that work just fine across the vlans. I have looked at past issues and discovered #1360 but there was no solution to the issue in that case, I have no idea why this is happening, I have tried removing all ACL's between my vlans and flushing the IP table to allow all traffic, but no luck. Has anyone else encountered this?

What is so confusing is that all of my other airplay devices work just fine, its only the RPI and shairport-sync.

Relevant log output

No response

System Information.

RPI 3B+, 3.5mm audio port

Configuration Information.

From "uname -a":
 Linux Audio-Reciever 6.6.51+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.51-1+rpt3 (2024-10-08) aarch64 GNU/Linux

From /etc/os-release:
 Debian GNU/Linux 12 (bookworm)

From /sys/firmware/devicetree/base/model:
 Raspberry Pi 3 Model B Plus Rev 1.3

Shairport Sync Version String:
 4.3.2-AirPlay2-smi10-alac-OpenSSL-Avahi-ALSA-soxr-sysconfdir:/etc

Command Line:
 shairport-sync --displayConfig

Configuration File:
 /etc/shairport-sync.conf

Configuration File Settings:
 general :
 {
   name = "Outdoor Speakers";
   output_backend = "alsa";
 };
 sessioncontrol :
 {
   session_timeout = 20;
 };

>> Display Config End.
>> Goodbye!

PulseAudio or PipeWire installed?

  • Check if your system uses a Sound Server.

How did you install Shairport Sync?

A package manager (apt, apt install, yum, pkg, etc.)

Check previous issues

  • Confirm
@Jphannon1
Copy link
Author

I turned on logging, when i connect from the different vlan, here is the log

Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.984257760 "rtsp.c:702" Found RTSP connection thread 4 in a non-running state.
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000127761 "rtsp.c:705" Connection 4: deleted.
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000044843 "rtsp.c:710" Airplay Volume for connection 6 is -8.249999.
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000050625 "rtsp.c:726" Airplay Volume for new connections is -8.249999.
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000096823 "rtsp.c:5588" Connection 7 is at: 0x7f98006b40.
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000133594 "rtsp.c:5670" Connection 7: New connection from 2a04:205:302:1d01:85bc:9496:2b57:8ffb:50128 to self at 2a04:205:302:1d02:8cea:8580:a6f4:7246:7000.
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000545625 "rtsp.c:5251" Connection 7: Received an RTSP Packet of type "GET":
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000065000 "rtsp.c:5253"   Type: "X-Apple-ProtocolVersion", content: "1"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000045573 "rtsp.c:5253"   Type: "Content-Length", content: "70"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000034010 "rtsp.c:5253"   Type: "Content-Type", content: "application/x-apple-binary-plist"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000033177 "rtsp.c:5253"   Type: "CSeq", content: "0"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000032553 "rtsp.c:5253"   Type: "User-Agent", content: "AirPlay/830.10.1"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000085312 "rtsp.c:5253"   Content Plist (as XML):
                                                      --
                                                      <?xml version="1.0" encoding="UTF-8"?>
                                                      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
                                                      <plist version="1.0">
                                                      <dict>
                                                              <key>qualifier</key>
                                                              <array>
                                                                      <string>txtAirPlay</string>
                                                              </array>
                                                      </dict>
                                                      </plist>
                                                      --
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000045990 "rtsp.c:2039" Connection 7: GET /info :: Content-Length 70
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000035520 "rtsp.c:2041" GET request
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000031198 "rtsp.c:2041"   Type: "X-Apple-ProtocolVersion", content: "1"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000032084 "rtsp.c:2041"   Type: "Content-Length", content: "70"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000031823 "rtsp.c:2041"   Type: "Content-Type", content: "application/x-apple-binary-plist"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000031823 "rtsp.c:2041"   Type: "CSeq", content: "0"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000031302 "rtsp.c:2041"   Type: "User-Agent", content: "AirPlay/830.10.1"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000069010 "rtsp.c:2041"   Content Plist (as XML):
                                                      --
                                                      <?xml version="1.0" encoding="UTF-8"?>
                                                      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
                                                      <plist version="1.0">
                                                      <dict>
                                                              <key>qualifier</key>
                                                              <array>
                                                                      <string>txtAirPlay</string>
                                                              </array>
                                                      </dict>
                                                      </plist>
                                                      --
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000039323 "rtsp.c:1677" GET /info:
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000032812 "rtsp.c:1677"   Type: "X-Apple-ProtocolVersion", content: "1"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000032292 "rtsp.c:1677"   Type: "Content-Length", content: "70"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000032969 "rtsp.c:1677"   Type: "Content-Type", content: "application/x-apple-binary-plist"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000031979 "rtsp.c:1677"   Type: "CSeq", content: "0"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000031250 "rtsp.c:1677"   Type: "User-Agent", content: "AirPlay/830.10.1"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000060938 "rtsp.c:1677"   Content Plist (as XML):
                                                      --
                                                      <?xml version="1.0" encoding="UTF-8"?>
                                                      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
                                                      <plist version="1.0">
                                                      <dict>
                                                              <key>qualifier</key>
                                                              <array>
                                                                      <string>txtAirPlay</string>
                                                              </array>
                                                      </dict>
                                                      </plist>
                                                      --
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000037447 "rtsp.c:1686" Connection 7: GET_INFO: Source AirPlay Version is: 830.10.1.
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000050938 "rtsp.c:1709" GET /info Stage 1: qualifier: txtAirPlay
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.001212187 "rtsp.c:1796" GET /info Stage 1 Response:
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000044428 "rtsp.c:1796"   Response Code: 501.
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000033750 "rtsp.c:1796"   Type: "CSeq", content: "0"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000032916 "rtsp.c:1796"   Type: "Server", content: "AirTunes/366.0"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000031927 "rtsp.c:1796"   Type: "Content-Type", content: "application/x-apple-binary-plist"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000471094 "rtsp.c:1796"   Content Plist (as XML):
                                                      --
                                                      <?xml version="1.0" encoding="UTF-8"?>
                                                      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
                                                      <plist version="1.0">
                                                      <dict>
                                                              <key>audioLatencies</key>
                                                              <array>
                                                                      <dict>
                                                                              <key>inputLatencyMicros</key>
                                                                              <integer>0</integer>
                                                                              <key>outputLatencyMicros</key>
                                                                              <integer>400000</integer>
                                                                              <key>type</key>
                                                                              <integer>100</integer>
                                                                      </dict>
                                                                      <dict>
                                                                              <key>audioType</key>
                                                                              <string>default</string>
                                                                              <key>inputLatencyMicros</key>
                                                                              <integer>0</integer>
                                                                              <key>outputLatencyMicros</key>
                                                                              <integer>400000</integer>
                                                                              <key>type</key>
                                                                              <integer>100</integer>
                                                                      </dict>
                                                                      <dict>
                                                                              <key>audioType</key>
                                                                              <string>media</string>
                                                                              <key>inputLatencyMicros</key>
                                                                              <integer>0</integer>
                                                                              <key>outputLatencyMicros</key>
                                                                              <integer>400000</integer>
                                                                              <key>type</key>
                                                                              <integer>100</integer>
                                                                      </dict>
                                                                      <dict>
                                                                              <key>audioType</key>
                                                                              <string>media</string>
                                                                              <key>inputLatencyMicros</key>
                                                                              <integer>0</integer>
                                                                              <key>outputLatencyMicros</key>
                                                                              <integer>400000</integer>
                                                                              <key>type</key>
                                                                              <integer>102</integer>
                                                                      </dict>
                                                              </array>
                                                              <key>keepAliveLowPower</key>
                                                              <true/>
                                                              <key>keepAliveSendStatsAsBody</key>
                                                              <true/>
                                                              <key>manufacturer</key>
                                                              <string>Shairport Sync</string>
                                                              <key>nameIsFactoryDefault</key>
                                                              <false/>
                                                              <key>protocolVersion</key>
                                                              <string>1.1</string>
                                                              <key>sdk</key>
                                                              <string>AirPlay;2.0.2</string>
                                                              <key>sourceVersion</key>
                                                              <string>366.0</string>
                                                              <key>statusFlags</key>
                                                              <integer>4</integer>
                                                              <key>txtAirPlay</key>
                                                              <data>
                                                              BWFjbD0wGmRldmljZWlkPWI4OjI3OmViOjQyOjg5OmVlG2ZlYXR1cmVzPTB4NDA1QzRB
                                                              MDAsMHgxQzM0MAdyc2Y9MHgwCWZsYWdzPTB4NBRtb2RlbD1TaGFpcnBvcnQgU3luYw1t
                                                              YW51ZmFjdHVyZXI9DXNlcmlhbE51bWJlcj0NcHJvdG92ZXJzPTEuMQ1zcmN2ZXJzPTM2
                                                              Ni4wJ3BpPTRjMDlhMTVkLTllYjgtNDI3Yi04ZTAyLTdjZTM3MzQ2Y2M0YihnaWQ9NGMw
                                                              OWExNWQtOWViOC00MjdiLThlMDItN2NlMzczNDZjYzRiBmdjZ2w9MENwaz00ZDYzNWE4
                                                              Y2Y4NTU4NDc1YjQxZTNjMjZlNjcwODg4NDk0MDYzMjRkZjIzYWRkZjU0ZTg5N2I0Zjgw
                                                              MTVkYTg3
                                                              </data>
                                                              <key>features</key>
                                                              <integer>496155701824000</integer>
                                                              <key>deviceID</key>
                                                              <string>b8:27:eb:42:89:ee</string>
                                                              <key>pi</key>
                                                              <string>4c09a15d-9eb8-427b-8e02-7ce37346cc4b</string>
                                                              <key>name</key>
                                                              <string>Outdoor Speakers</string>
                                                              <key>model</key>
                                                              <string>Shairport Sync</string>
                                                      </dict>
                                                      </plist>
                                                      --
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000133490 "rtsp.c:5312" Connection 7: RTSP Response:
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000041927 "rtsp.c:5313"   Response Code: 200.
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000033698 "rtsp.c:5313"   Type: "CSeq", content: "0"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000032239 "rtsp.c:5313"   Type: "Server", content: "AirTunes/366.0"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000031823 "rtsp.c:5313"   Type: "Content-Type", content: "application/x-apple-binary-plist"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000390521 "rtsp.c:5313"   Content Plist (as XML):
                                                      --
                                                      <?xml version="1.0" encoding="UTF-8"?>
                                                      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
                                                      <plist version="1.0">
                                                      <dict>
                                                              <key>audioLatencies</key>
                                                              <array>
                                                                      <dict>
                                                                              <key>inputLatencyMicros</key>
                                                                              <integer>0</integer>
                                                                              <key>outputLatencyMicros</key>
                                                                              <integer>400000</integer>
                                                                              <key>type</key>
                                                                              <integer>100</integer>
                                                                      </dict>
                                                                      <dict>
                                                                              <key>audioType</key>
                                                                              <string>default</string>
                                                                              <key>inputLatencyMicros</key>
                                                                              <integer>0</integer>
                                                                              <key>outputLatencyMicros</key>
                                                                              <integer>400000</integer>
                                                                              <key>type</key>
                                                                              <integer>100</integer>
                                                                      </dict>
                                                                      <dict>
                                                                              <key>audioType</key>
                                                                              <string>media</string>
                                                                              <key>inputLatencyMicros</key>
                                                                              <integer>0</integer>
                                                                              <key>outputLatencyMicros</key>
                                                                              <integer>400000</integer>
                                                                              <key>type</key>
                                                                              <integer>100</integer>
                                                                      </dict>
                                                                      <dict>
                                                                              <key>audioType</key>
                                                                              <string>media</string>
                                                                              <key>inputLatencyMicros</key>
                                                                              <integer>0</integer>
                                                                              <key>outputLatencyMicros</key>
                                                                              <integer>400000</integer>
                                                                              <key>type</key>
                                                                              <integer>102</integer>
                                                                      </dict>
                                                              </array>
                                                              <key>keepAliveLowPower</key>
                                                              <true/>
                                                              <key>keepAliveSendStatsAsBody</key>
                                                              <true/>
                                                              <key>manufacturer</key>
                                                              <string>Shairport Sync</string>
                                                              <key>nameIsFactoryDefault</key>
                                                              <false/>
                                                              <key>protocolVersion</key>
                                                              <string>1.1</string>
                                                              <key>sdk</key>
                                                              <string>AirPlay;2.0.2</string>
                                                              <key>sourceVersion</key>
                                                              <string>366.0</string>
                                                              <key>statusFlags</key>
                                                              <integer>4</integer>
                                                              <key>txtAirPlay</key>
                                                              <data>
                                                              BWFjbD0wGmRldmljZWlkPWI4OjI3OmViOjQyOjg5OmVlG2ZlYXR1cmVzPTB4NDA1QzRB
                                                              MDAsMHgxQzM0MAdyc2Y9MHgwCWZsYWdzPTB4NBRtb2RlbD1TaGFpcnBvcnQgU3luYw1t
                                                              YW51ZmFjdHVyZXI9DXNlcmlhbE51bWJlcj0NcHJvdG92ZXJzPTEuMQ1zcmN2ZXJzPTM2
                                                              Ni4wJ3BpPTRjMDlhMTVkLTllYjgtNDI3Yi04ZTAyLTdjZTM3MzQ2Y2M0YihnaWQ9NGMw
                                                              OWExNWQtOWViOC00MjdiLThlMDItN2NlMzczNDZjYzRiBmdjZ2w9MENwaz00ZDYzNWE4
                                                              Y2Y4NTU4NDc1YjQxZTNjMjZlNjcwODg4NDk0MDYzMjRkZjIzYWRkZjU0ZTg5N2I0Zjgw
                                                              MTVkYTg3
                                                              </data>
                                                              <key>features</key>
                                                              <integer>496155701824000</integer>
                                                              <key>deviceID</key>
                                                              <string>b8:27:eb:42:89:ee</string>
                                                              <key>pi</key>
                                                              <string>4c09a15d-9eb8-427b-8e02-7ce37346cc4b</string>
                                                              <key>name</key>
                                                              <string>Outdoor Speakers</string>
                                                              <key>model</key>
                                                              <string>Shairport Sync</string>
                                                      </dict>
                                                      </plist>
                                                      --
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000139375 "rtsp.c:1535" Responding with content of length 916
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.008187031 "rtsp.c:5251" Connection 7: Received an RTSP Packet of type "POST":
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000090834 "rtsp.c:5253"   Type: "X-Apple-AbsoluteTime", content: "758587950"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000037447 "rtsp.c:5253"   Type: "X-Apple-HKP", content: "6"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000035730 "rtsp.c:5253"   Type: "X-Apple-Client-Name", content: "James ipad"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000034218 "rtsp.c:5253"   Type: "X-Apple-PD", content: "1"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000032136 "rtsp.c:5253"   Type: "Content-Length", content: "37"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000031927 "rtsp.c:5253"   Type: "Content-Type", content: "application/octet-stream"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000032812 "rtsp.c:5253"   Type: "CSeq", content: "1"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000033438 "rtsp.c:5253"   Type: "User-Agent", content: "AirPlay/830.10.1"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000033698 "rtsp.c:5253"   No Content Plist. Content length: 37.
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000039010 "rtsp.c:2204" Connection 7: pair-verify Content-Length 37
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.002604427 "rtsp.c:2240" pair-verify response
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000074792 "rtsp.c:2240"   Response Code: 200.
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000034740 "rtsp.c:2240"   Type: "CSeq", content: "1"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000033177 "rtsp.c:2240"   Type: "Server", content: "AirTunes/366.0"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000032500 "rtsp.c:2240"   Type: "Content-Type", content: "application/octet-stream"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000034270 "rtsp.c:2240"   No Content Plist. Content length: 140.
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000033230 "rtsp.c:5312" Connection 7: RTSP Response:
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000033333 "rtsp.c:5313"   Response Code: 200.
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000031250 "rtsp.c:5313"   Type: "CSeq", content: "1"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000031771 "rtsp.c:5313"   Type: "Server", content: "AirTunes/366.0"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000031875 "rtsp.c:5313"   Type: "Content-Type", content: "application/octet-stream"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000032187 "rtsp.c:5313"   No Content Plist. Content length: 140.
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000050521 "rtsp.c:1535" Responding with content of length 140
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.020152240 "rtsp.c:5251" Connection 7: Received an RTSP Packet of type "POST":
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000091979 "rtsp.c:5253"   Type: "X-Apple-AbsoluteTime", content: "758587950"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000029219 "rtsp.c:5253"   Type: "X-Apple-HKP", content: "4"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000025312 "rtsp.c:5253"   Type: "X-Apple-Client-Name", content: "James ipad"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000024896 "rtsp.c:5253"   Type: "Content-Length", content: "9"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000024531 "rtsp.c:5253"   Type: "Content-Type", content: "application/x-apple-binary-plist"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000024688 "rtsp.c:5253"   Type: "CSeq", content: "2"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000024166 "rtsp.c:5253"   Type: "User-Agent", content: "AirPlay/830.10.1"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000025990 "rtsp.c:5253"   No Content Plist. Content length: 9.
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000031823 "rtsp.c:2248" Connection 7: handle_pair-setup Content-Length 9
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.051244844 "rtsp.c:2286" pair-setup response
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000093541 "rtsp.c:2286"   Response Code: 200.
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000028906 "rtsp.c:2286"   Type: "CSeq", content: "2"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000026198 "rtsp.c:2286"   Type: "Server", content: "AirTunes/366.0"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000025052 "rtsp.c:2286"   Type: "Content-Type", content: "application/octet-stream"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000027240 "rtsp.c:2286"   No Content Plist. Content length: 409.
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000025365 "rtsp.c:5312" Connection 7: RTSP Response:
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000024948 "rtsp.c:5313"   Response Code: 200.
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000024166 "rtsp.c:5313"   Type: "CSeq", content: "2"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000023959 "rtsp.c:5313"   Type: "Server", content: "AirTunes/366.0"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000023958 "rtsp.c:5313"   Type: "Content-Type", content: "application/octet-stream"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000024687 "rtsp.c:5313"   No Content Plist. Content length: 409.
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000031407 "rtsp.c:1535" Responding with content of length 409
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.104867291 "rtsp.c:5251" Connection 7: Received an RTSP Packet of type "POST":
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000071771 "rtsp.c:5253"   Type: "X-Apple-AbsoluteTime", content: "758587950"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000017917 "rtsp.c:5253"   Type: "X-Apple-HKP", content: "4"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000014948 "rtsp.c:5253"   Type: "X-Apple-Client-Name", content: "James ipad"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000014218 "rtsp.c:5253"   Type: "Content-Length", content: "457"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000016355 "rtsp.c:5253"   Type: "Content-Type", content: "application/x-apple-binary-plist"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000015208 "rtsp.c:5253"   Type: "CSeq", content: "3"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000013802 "rtsp.c:5253"   Type: "User-Agent", content: "AirPlay/830.10.1"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000014635 "rtsp.c:5253"   No Content Plist. Content length: 457.
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000019167 "rtsp.c:2248" Connection 7: handle_pair-setup Content-Length 457
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.035649688 "rtsp.c:2286" pair-setup response
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000050468 "rtsp.c:2286"   Response Code: 200.
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000016355 "rtsp.c:2286"   Type: "CSeq", content: "3"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000014739 "rtsp.c:2286"   Type: "Server", content: "AirTunes/366.0"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000014219 "rtsp.c:2286"   Type: "Content-Type", content: "application/octet-stream"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000014687 "rtsp.c:2286"   No Content Plist. Content length: 69.
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000014688 "rtsp.c:5312" Connection 7: RTSP Response:
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000015989 "rtsp.c:5313"   Response Code: 200.
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000013750 "rtsp.c:5313"   Type: "CSeq", content: "3"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000013594 "rtsp.c:5313"   Type: "Server", content: "AirTunes/366.0"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000013698 "rtsp.c:5313"   Type: "Content-Type", content: "application/octet-stream"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000013958 "rtsp.c:5313"   No Content Plist. Content length: 69.
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000019740 "rtsp.c:1535" Responding with content of length 69
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.005469844 "rtsp.c:5251" Connection 7: Received an RTSP Packet of type "POST":
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000052239 "rtsp.c:5253"   Type: "X-Apple-ET", content: "32"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000016407 "rtsp.c:5253"   Type: "Content-Length", content: "16"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000014583 "rtsp.c:5253"   Type: "Content-Type", content: "application/octet-stream"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000014271 "rtsp.c:5253"   Type: "CSeq", content: "4"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000019010 "rtsp.c:5253"   Type: "User-Agent", content: "AirPlay/830.10.1"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000015573 "rtsp.c:5253"   No Content Plist. Content length: 16.
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000021927 "rtsp.c:5312" Connection 7: RTSP Response:
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000014688 "rtsp.c:5313"   Response Code: 200.
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000013437 "rtsp.c:5313"   Type: "CSeq", content: "4"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000013750 "rtsp.c:5313"   Type: "Server", content: "AirTunes/366.0"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000013646 "rtsp.c:5313"   Type: "Content-Type", content: "application/octet-stream"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000013854 "rtsp.c:5313"   No Content Plist. Content length: 142.
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000018438 "rtsp.c:1535" Responding with content of length 142
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.005514896 "rtsp.c:5251" Connection 7: Received an RTSP Packet of type "POST":
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000055208 "rtsp.c:5253"   Type: "X-Apple-ET", content: "32"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000016719 "rtsp.c:5253"   Type: "Content-Length", content: "164"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000014635 "rtsp.c:5253"   Type: "Content-Type", content: "application/octet-stream"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000015260 "rtsp.c:5253"   Type: "CSeq", content: "5"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000018438 "rtsp.c:5253"   Type: "User-Agent", content: "AirPlay/830.10.1"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000015521 "rtsp.c:5253"   No Content Plist. Content length: 164.
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000020000 "rtsp.c:5312" Connection 7: RTSP Response:
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000014948 "rtsp.c:5313"   Response Code: 200.
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000013698 "rtsp.c:5313"   Type: "CSeq", content: "5"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000013802 "rtsp.c:5313"   Type: "Server", content: "AirTunes/366.0"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000013698 "rtsp.c:5313"   Type: "Content-Type", content: "application/octet-stream"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000013958 "rtsp.c:5313"   No Content Plist. Content length: 32.
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000018229 "rtsp.c:1535" Responding with content of length 32
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.012607083 "rtsp.c:5251" Connection 7: Received an RTSP Packet of type "SETUP":
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000069948 "rtsp.c:5253"   Type: "Content-Length", content: "1181"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000017292 "rtsp.c:5253"   Type: "Content-Type", content: "application/x-apple-binary-plist"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000014792 "rtsp.c:5253"   Type: "CSeq", content: "6"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000014948 "rtsp.c:5253"   Type: "User-Agent", content: "AirPlay/830.10.1"
Jan 14 22:52:30 Audio-Reciever shairport-sync[13396]:          0.000209895 "rtsp.c:5253"   Content Plist (as XML):```

Not really sure what these logs mean, can anyone else make sense of them?

@mikebrady
Copy link
Owner

mikebrady commented Jan 15, 2025

Thanks for the post.

TBH, it's a bit surprising that the other devices work at all, as AirPlay seems to be confined to the same subnet. So if you could give some details of the VLANs, it might be useful.

Another consideration is that the IP addresses advertised by Shairport Sync — which uses Avahi — can include global IPv6 addresses, whereas genuine AirPlay devices seem to only advertise local IPv6 addresses. It would be interesting to see what happens if you completely disable IPv6 on the Pi.

[Update] If you have firewalls between the VLANs, then maybe they are causing some of the issues. One way to check is to temporarily disable them to see if the problem resolves.

@Jphannon1
Copy link
Author

Thanks for the suggestion, turning off IPV6 fixed the issue, must be a routing issue across vlans only for ipv6

@Jphannon1
Copy link
Author

Actually, is there a way to only have shareport use ipv4 with ipv6 still being enabled on the pi as I would like to have raspotify installed but for some reason raspotify doesnt work with ipv6 disabled.

@Jphannon1 Jphannon1 reopened this Jan 15, 2025
@mikebrady
Copy link
Owner

Well done on the progress so far.

I am completely guessing here, but I am guessing that when IPv6 is enabled, your device is getting a global IPv6 address which AirPlay devices won’t use.

Shairport Sync uses Avahi, so it might be worth trying to prevent Avahi from advertising IPv6. I’ve never done this, but there seems to be some advice on the Internet. Not sure it’ll work and not sure if won’t mess up Raspotify, but worth trying.

@Jphannon1
Copy link
Author

Thats worked a treat, thanks for you help :), maybe worth adding to troubleshooting? Although it is a very niche issue.

@mikebrady
Copy link
Owner

Glad it worked! You’re right — it should go into troubleshooting. I’m away from machines just now, but when I get back…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants