My client devices (Home Assistant Preview Edition and other smart speakers) are on a separate subnet than the server running Home Assistant. I am trying to configure my firewall rule to allow traffic. I see 43740 show up in my packet captures for the server side port but am wondering if it is a single port or an actual port range. Thanks!
#Is there an official network port range for Assist server?
1 messages · Page 1 of 1 (latest)
The VPE will need to be reachable from your HA server via the esphome port 6053. Or simply allow connections from the HA server to the vlan where the esphome devices reside.
the VPE also needs to to be able to reach the server on its web port so that it can get the audio streams.
Yeah. Upon further tinkering, I'm noticing if I have port 8123 open for the VPE to connect to HA, it seems to work just fine. And also my android tablets running fully kiosk have functioning text to speech now using piper.
I already have a fw rule so that HA can talk to everything on the vlan where the VPE resides (and tablets/other smart speakers), but seems that a rule for VPE to initiate a connection back to HA is required.
yeah the API connection is established from HA side, but audio streaming is established from VPE side
Thank you, figuring that out now. Would you happen to know how piper TTS audio stream communications work over apple homepods? It seems like for homepods, it's on a different port than 8123. Was about to do another packet capture to try and figure it out.
not directly, how are they integrated to home assistant?
Using the Apple TV integration.
I have no idea how it works, but i assume it involves preying to the apple overlords to get permission at some stage.
Yeah you're def right lol. When I have an "any" fw port rule the TTS works fine on the homepods, I just would like to narrow it down to a specific port. The VPE and android tablets used 8123 for audio streams as you said but the homepods are out in cloud nine lol
time for some more packet captures and more praying lol
Yeah didn't have a whole lot of luck with the homepods streaming port without setting a pure open fw rule which i'm not going to do. I'm sticking to the VPEs and the TTS on the android tablets 😂
perhaps it uses "airplay" protocol? you could try allowing the ports for that, if the apple tv integration doesn't do that you could use music assistant to add them as a player using airplay. although i dont know how picky airplay is across vlans etc... it might decide it doesnt like it
I tried airplay, but I keep getting this error when I run the TTS inside of a script. I tried opening up rtsp ports back to the HA server and still get the same message.
Failed to perform the action script/test_voice_script. no response to SETUP rtsp://192.168.4.200/3610781689 (RTSP/1.0)
the .200 IP is the HA server
rtsp is on port 554 i think right? did you have that one allowed?
yeah I did.
it might have some other control ports or something i am not sure tbh
Port 7000 (TCP): AirPlay streaming data (used for screen mirroring)
Port 7100 (TCP/UDP): Screen mirroring via AirPlay.
Port 80 (TCP): HTTP, used for initial device discovery.
Port 443 (TCP): HTTPS, used for secure communication during streaming.
Port 554 (TCP/UDP): RTSP (Real-Time Streaming Protocol) used for AirPlay's media control.
Ports 5000-5001 (TCP): AirPlay's control channels.
Port 5353 (UDP): mDNS (Multicast DNS), used for service discovery in the Bonjour protocol.
Ports 49152-65535 (TCP/UDP): Random high ports for dynamic sessions during streaming.
some random thread i found
probably just one of those things that the apple overlords don't like
yeah. I should try these!
these worked! one of the ports did at least. I'm thinking missing the dynamic port range at the bottom was the issue but who knows.
thank you so much for your time and help
no worries, glad you got it working. next step is to remove the apple stuff alltogether 🙂
that's what my friends tell me but the apple stuff I have feels like a sunk investment that I cope with and try to get working for way longer than i should lol
as long as you don't buy any more!