mikebrady / shairport-sync

AirPlay and AirPlay 2 audio player
Other
7.23k stars 573 forks source link

Disable ipv6? #977

Closed ajartaknev closed 3 years ago

ajartaknev commented 4 years ago

Hi, I was seeing an issue with shairport-sync (on an rpi3) and iPhone, where the airplay used to work only sporadically. After some digging of the logs, it turns out the iPhone was connecting to shairport-sync server using ipv6, guessing ipv6 was causing some issue, I disable the ipv6 systemwide on the RPi3, airplay started working normally. I was wondering if there is a way to disable ipv6 within shairport-sync possibly through a config setting, instead of disabling it systemwide on rpi3. Can you please shed some light. Thank you.

mikebrady commented 4 years ago

Thanks for the post. There is no setting in Shairport Sync for disabling IPv6, I'm afraid. However, there should not be any particular reason for it not to work with IPv6, so the problem would suggest that there may be an issue with your network setup. Let me suggest you take a look through the TROUBLESHOOTING.md page if you haven't already done so.

jshep321 commented 4 years ago

Hi, I had the same intermittent problem (using forked-daapd as the source). Disabled ipv6, rebooted, and worked like a charm.
https://www.raspberrypi.org/forums/viewtopic.php?t=256349

Interestingly, I have 2 routers/wifi nodes. When connected to one of them, ipv6 is disabled so it worked fine. The other one didn't have it disabled, so this failure would sometimes occur.

Server log output: mdns: Connection test to <ipv6 address>:5000 failed with getaddrinfo error: Address family for hostname not supported. mdns: Ignoring announcement from office.local, address <ipv6 address> is not connectable

I will also disable ipv6 on the server to hopefully avoid this network(s)-wide.

github-actions[bot] commented 3 years ago

This issue has been inactive for 60 days so will be closed 7 days from now. To prevent this, please remove the "stale" label or post a comment.