I’m running Home Assistant in a Docker container which is behind a NAT-network (172.x.x.x while the real network is on 192.x.x.x). Since the Docker container is running on Windows, host networking is not supported. This haven`t been a huge blocker, as most integrations supports manually adding devices to the configuration.
However, with the Apple TV integration, it seems a bit harder. I am able to scan my Apple TV from within the container (172.x.x.x network):
atvremote --scan-hosts 192.168.1.231 scan
Scan Results
========================================
Name: Hjemmekino
Model/SW: 4K tvOS 14.2 build 18K57
Address: 192.168.1.231
MAC: 90:DD:5D:CA:0F:9B
Deep Sleep: False
Identifiers:
- 12BDC2D1-0E81-4444-A448-DAC2B49E9DC5
- 90:DD:5D:CA:0F:9B
Services:
- Protocol: MRP, Port: 49152, Credentials: None
- Protocol: AirPlay, Port: 7000, Credentials: None
However, pairing fails:
atvremote --id 90:DD:5D:CA:0F:9B --protocol mrp pair
2020-11-28 11:22:57 ERROR: Could not find any Apple TV on current network
Any ideas whether it is possible to get this working somehow?