i have a fire stick 4k and after much trial and error i was able to connect to it through my raspberry PI. I didn't have issues when connecting from my windows laptop, but for the raspberry pi i had to connect the stick first through USB and then issue the command for connecting through tcp.
it worked fine for a couple of weeks, but since a couple of days ago i am experiencing disconnections from ADB after just around 5 minutes. There hasn't been any change in my network or internet reliability (or an update on my raspberry pi). I don't know if the fire stick itself has auto updated suddenly.
Right now, to connect i just issue "adb connect <ip>:5555" and then i can see the ip showing up on adb devices normally. I have a python script that takes a screenshot every 5 minutes.
The error i'm getting is the common "no devices/emulators found". Most of the time i'm able to get it back to work by just using the adb connect command again.
I have modified my script to detect when the output string shows the error message above, to try using the adb connect command again to retain the connection, but sometimes this even doesn't know.
What's happening? Like i said this used to work normally up to a few days ago. Do you think the stick is somehow seeing my commands as some sort of attack and causing a disconnection on purpose? I am just using adb shell and adb pull commands.