pyatv icon indicating copy to clipboard operation
pyatv copied to clipboard

Support for IPv6

Open postlund opened this issue 4 years ago • 3 comments

What feature would you like? At the moment, pyatv only supports IPv4 but at some point I would like to add IPv6 as well. The main reason for only IPv4 support is that I only supported one address per device from start and I just kept that for simplicity.

Describe the solution you'd like Support for multiple addresses in the config and some sort of flag to decide which address to use (or at least protocol to use). Maybe relates to #1136 to some extent.

Any other information to share? This will result in a breaking change in conf.AppleTV as I need to handle multiple addresses.

postlund avatar Jun 18 '21 08:06 postlund

Hey, sorry do dig this one up, but has there been any progress made towards IPv6 support? Are the hold-ups still the same as before and is there anything one could do to help?

I come here after looking in the Homeassistant repo to figure out, why it can't connect to my Homepods anymore (which are currently running IPv6-only).

itz-Jana avatar Jun 21 '23 06:06 itz-Jana

It is of course on my list to implement this and it shouldn't be too hard. Some code however depends on addresses being IPv4, like how the configuration is constructed. There's also no support for multiple addresses being mapped to the same service (nor any priority order between them), so that's also something that needs to be fixed. Other things should be pretty straight forward. Not sure how I would properly add tests for IPv6, so that's also a things to consider.

postlund avatar Jun 22 '23 14:06 postlund