How to Connect ADB and Run Shell Commands on a Fire TV, Fire TV Stick, Fire TV Cube, or Fire TV Smart TV

This guide will show you how to connect to a Fire TV, Fire TV Stick, Fire TV Cube, or Fire TV Smart TV using Android Debug Bridge (ADB). Connecting to your Fire TV device via ADB allows you to remotely perform many different tasks, such as running ADB Shell commands.

Originally published December 11, 2014. Last updated October 13, 2023.

Prerequisite 1 – Enable ADB Debugging

Regardless of how you are making your ADB connection, you must first have the setting “ADB Debugging” enabled on your Fire TV device. To do so, follow this guide.

Prerequisite 2 – Determine IP Address

If you are connecting using an external device, like a desktop, laptop, phone, or tablet, you must know your Fire TV’s IP address. To find your Fire TV’s IP address, follow this guide.

Method 1: Connect directly on a Fire TV using no other device [UPDATE: No longer possible on newer software versions!]

UPDATE: Starting in February 2024, Amazon has started blocking local ADB connections, so you will need to use one of the other methods if your device has been updated after that point. More info here.

  1. If you haven’t done so yet, enable “ADB debugging” on your Fire TV by following this guide.
  2. Download and install the app “Remote ADB” by entering 2201 (or into the Downloader app. If you’ve never sideloaded or used the Downloader app, follow this detailed guide for sideloading.
  3. Open the Remote ADB app on your Fire TV and enter into the first text field, leave 5555 in the second field, and press the connect button.
  4. On the “Allow USB Debugging” message that appears, check the box to “Always allow from this computer” and then select OK.
  5. You are now connected via ADB to your device and can type shell commands to run. To make it easier to enter long commands, you can use the virtual keyboard in the Fire TV Remote app from the Google Play Store or Apple App Store.

Method 2: Connect using a Windows, Mac, or Linux computer using ADBLink

  1. Download adbLink from here for free. Install and open the app.
  2. Enter your Fire TV’s IP address into the field labeled “IP:port” and click the “Connect” button.
  3. If an “Allow USB Debugging” message appears on your Fire TV, check the box to “Always allow from this computer” and then select OK.
  4. Once you see “IP connection” listed in the center status box, click the “ADB Shell” button.
  5. A Terminal or Command Prompt Window will open. You can enter your ADB Shell commands into this window to run them on your Fire TV.

Method 3: Connect using a Windows or Mac computer directly using Command Prompt/Terminal

  1. If you haven’t done so yet, install ADB on your Mac or Windows PC by following this guide.
  2. Launch Command Prompt on Windows or Terminal on Mac. For Windows, you can find Command Prompt by searching or by pressing [Windows Key] + R on your keyboard and entering cmd. For Mac, you can find Terminal by searching (press ⌘-Space) or in the Utilities folder inside the Applications folder.
  3. [OPTIONAL] To ensure ADB is installed, enter the command:
    adb versionYou should see Android Debug Bridge version #.#.# printed if ADB is installed.
  4. Enter the command:
    adb kill-serveradb-kill-server
  5. Enter the command:
    adb start-serveradb-start-server
  6. Enter the command:
    adb connect <ipaddress>Be sure to substitute <ipaddress> with your Fire TV or Fire TV Stick’s IP address from step 2.
  7. If an “Allow USB Debugging” message appears on your Fire TV, check the box to “Always allow from this computer” and then select OK.
  8. [OPTIONAL] Ensure you are connected correctly by entering the command:
    adb devicesYou should see only one device listed along with the IP address you just entered.
  9. You may now enter your commands to run. If you are running shell commands, you need to first enter adb shell before each command.
To disconnect properly
  1. Enter the command:
    adb disconnect <ipaddress>Be sure to substitute <ipaddress> with your Fire TV or Fire TV Stick’s IP address.
  2. Enter the command:
    adb kill-serveradb-kill-server

Leave a Reply to Joshua Cancel reply

Your email address will not be published. Required fields are marked *


  1. Bernie says:

    Could you please tell me where I can download ADB debugging ? Thanks in advance

    • chris says:

      there is a link in the how to install adb doc referenced in step 3 above.

    • bryan says:

      how do i connect with a cable or with an app

    • Dusty says:

      For linux its : open the terminal
      type sudo apt install adb
      type admin password when prompted
      answer Y to install

      find the ip of your firet least that is where mine is located. Most likelyt will be tv from settings menu on top of home screen, then my fire tv then about, then Network. At least that is where mine was found.
      It most likely will be a number such as: or
      Mine is as that is the schema i chose on my router.

      To see if it is correctly installed try typing this in command prompt ( linux, Mac or Windows versions)
      adb version
      You should see Android Debug Bridge version #.#.# printed if ADB is installed.

      then typeon your fire stick, fire tv adb connect
      using the ip address you found earlier on your fire tv device, fire stick, fire cube and fire tv
      type adb devices to see if you are connected to your fire tv.

      once you have found the apk file such as mindcraftxx-xx.apk or game.apk or utility.apk

      whatever the exact name is case sensitive. I suggest you either copy the file to your adb directory or rename it to a simple name like mindcraft.apk.

      then once you know exact path where the file is located. then to install it try this:
      adb connect
      abd install mindcraft.apk (or filename)

      then once successfull goto fire tv menu, SETTINGS, then APPLICATIONS, then MANAGE INSTALLED APPLICATIONS,

      Then find your mindcraft or other app and run it.

      This is just the basics but hope it helps

  2. Martin says:

    you dont download adb debugging, its a setting that has to be enabled on the fire tv stick

  3. Jax Ward says:

    My Amazon fire box loaded with KODI don’t always fill up cache & also was wondering how to down load movies , Im new to using KODI , I’m enjoying watching movies, jus afraid of messing something up !also wondering about the new update, will it screw it up ?

  4. Cam says:

    What do I do if at step 9 I see 3 devices instead of only the IP?

    • AFTVnews says:

      If you have devices, like smart phones, connected to your PC, unplug them. If the devices list IP addresses when you enter “adb devices” then enter “adb disconnect ” for the devices that are not your Fire TV.

  5. Carolina says:

    Can this be used to set up a new firestick? i have the app on my phone but have to set it up to my wifi first since i dont have the remote. Thanks in advance

  6. KJ says:

    How do you connect the firestick to the computer so you can root it? Is there a patch cord that will link the firestick to computer?

  7. Josh says:

    Hi, I have installed adb on my Windows 10 PC as administrator per instructions. When I open the command prompt window and type adb version and just says adb is not a recognized command.

    • Yggdr4sil says:

      Try to put the adb folder in your c: drive main direction or try to start it as admin or the other way i can’t remember what worked for me.

  8. Chris says:

    I am having trouble connecting the IP address through adb. I enter adb connect and get the reply unable to connect to :5555. Why is this happening? (I am putting in the IP address by the way, not )

  9. Mark says:

    I follow this entire guide and everything checks out except the device is always “offline”. Ugh.

    • Mark says:

      For me on the Fire TV I have to go into Settings – System – Network and forget my network connection. Then reconnect to it. Then go back to Terminal kill the server, start the server, connect and then it shows “device” instead of showing “offline”. Man do I need a script for this.

    • Dan says:

      Try turning off/on ADB Debugging. This worked for me.

  10. tropical says:

    After doing this, how can I now stop updates to the fire stick

  11. Amy says:

    What donindonif the fire stick downloaded a voice feature that won’t allow me to use remote properly and not at all for kodi?

  12. Dumb says:

    Just wondering does the firestick need to be plugged into the pc during all of this. Or in the tv?

  13. Jamie says:

    I only have an iPhone and fire stick. Is it possible to get Es explore and kodi just using them?

  14. Matt says:

    After I put in adb connect I get an error that’s says

    The syntax of the command is incorrect.

    How can I resolve this issue?

  15. Mel says:

    How do you control ADB on Fire TV if you cannot get a screen to show. Cannot get past Amazon Logo screen?

  16. James Adams says:

    I just hooked up my rooted stick and didn’t have to do anything. it automatically detected the wired connection and I hooked up a wireless keyboard & mouse ,it detected those also.

    Thanks so much for all the info!!

  17. Mike says:

    Have it downloaded correctly on my laptop, on the same wi-fi system, it will not connect to the stick, IP address is correct and everything. Am I missing something?

  18. Lauren says:

    When i go onto network your picture shows a mac address for the lan aswell as wifi which mine doesnt and then it days unable to connect when i go through the terminal set up and type in ‘adb connect …> Any advice thankyou!

  19. stuart busby says:

    hi ive done steps 1-9 and nothing is happening it says still connected to wifi not ethernet any ideas guys??

  20. Arthur says:

    How can I connect the tv wire stick by adb ?No access to settings.

  21. Arthur says:

    How to Solve Issues with a software update fire tc stick ?
    I tried all the methods found on the internet but does not work.It show me every
    time message Unable to update your Amazon fire tv stick.I tried many times.My product is Fire Tv Stick
    (1 st generation).I tried factory reset by pressing RIGHT + BACK 10 seconds.Thank you

  22. J Winchester says:

    Lost my Fire Stick remote & unable to connect to wifi to use adb that way, is it possible to plug directly into USB & issue adb commands that way? TIA

  23. Kirk says:

    Any tricks to get the new wireless touchscreen keyboard to connect to firestick (USB dongle, otg cable doesn’t help) tried FN+F1 and left mouse+volume up tricks to pair but nothing happened

  24. Ciwan says:

    adb devices command returns me nothing. List of devices attached is blank. This is for amazon fire tv first generation. I bricked it, no light nothing, only when i put male-to-male usb cable and put the power cable on the aftv the storage comes up. but nothing else, anyone experienced this before? please help me :(

  25. Greg says:

    Thanks for this great guide. Used it to change sleep timeout on my FireStick and it worked perfectly. Well, maybe — I seem to now have one issue. Holding down the home button doesn’t always bring up the mini menu that lets me choose apps, sleep, etc. Sometimes first I have to bring up the home screen. Could this be related somehow to using adb debugging to change the sleep setting? Or maybe this has always been a quirk and I never noticed it?

  26. Ben says:

    Hi, I have downloaded the ‘remote ADB shell’. I have entered the IP address which is however I can’t seem to determine what the port address should be. The application suggests it should be 5555, however this isn’t working. Any help?

    • Gary says:

      That is not your local network connection: it should start with 192.168.

      Find it when you view your network connection on your Fire TV as per step #2

  27. Chris says:

    I have 2 Firesticks in separate locations. The instructions worked perfectly on the first item but when I enter the IP address for the second, I get a display “empty host name”. Any ideas please ? Thanks in advance.

  28. Chris says:

    Forget this one guys, I’ve sorted it. If anyone has the same issue, I followed the simple suggestion offered by Nathan on the topic of changing default settings of sleep and screen saver and it worked a treat. (Download Remote ADB Shell to another Android device and connect by that).

  29. James says:

    What if the fire TV isn’t on any network, due to a house move, for example? How can it be accessed / reset / configured, with no remote & no IP?

  30. Joshua says:

    I wanted to say thanks! I come back every couple years to reference this when I get a new firestick or set one up for a friend/family member. This is incredibly helpful, so thank you!

  31. Ron says:

    When I connect to the Fire TV cube IP address using “adb connect”, it says failed to authenticate. When I type “adb devices”, it reports:
    List of devices attached unauthorized

    • That most likely means that a message to approve the connection appeared on your Fire TV and you didn’t approve it in time. Try disabling ADB on the Fire TV and then re-enabling it and trying to connect again.

      • Ron says:

        Yup, thanks, figured that one out pretty quick last night. I was on my desktop computer in another room and didn’t notice the approval message on the TV.

  32. Vince says:

    I’m looking for adb commands to get a Firestick to factory reset once bootlooped. I’ve heard a lot of people say adb reboot factory works, but it actually kills Firesticks after reading up on it. That command would work on android devices, but it doesn’t seem to work correctly on the Firestick from what I’ve gathered. These Firesticks bootloop so easily and I’m very curious if there are any adb commands out there capable of kicking a Firestick out of bootloop – preferably by reinstalling the OS but if I could even access the home screen once bootlooped that’d be a win too. I know how to push apks and remove them, but I would like to know other helpful adb commands if the problem cannot be resolved by removing the apk through adb. I also know you can root certain devices on exploitable firmware and create a custom recovery bootloader but mine isn’t on an exploitable firmware. It does however have a solid wired connection with adb. My Firestick is currently alive and fully functional but any ideas for the upcoming inevitable future bootloop would be very much appreciated!

  33. Andrew Bienhaus says:

    I seem to have hit a little snag, that has grown up with Amazon updates.
    Wondering if anyone has seen a workaround for this yet?

    It would seem, that if you enable more than one profile (as we have, so my Dad show status and such is relevant for him, as compared to us, and we can still share the one amazon prime login, blah blah blah)…

    When you turn off the screen/tv, the firestick is staying on as planned, (verified by pinging for hours) but as soon as you turn the TV back on, it right away reverts to the “whose profile do you want” screen.

    Wouldn’t matter so much, except that it dumps one out of apps (like Kodi) that you left running… :)

Leave a Reply to Joshua Cancel reply

Your email address will not be published. Required fields are marked *


Get AFTVnews articles in your inbox!

Get an email anytime a new article is published.
No Spam EVER and Cancel Anytime.