Skip to content

Instantly share code, notes, and snippets.

@lionc2240
Created June 3, 2026 08:05
Show Gist options
  • Select an option

  • Save lionc2240/700d6b460ac48e1ff688fadbfb9986de to your computer and use it in GitHub Desktop.

Select an option

Save lionc2240/700d6b460ac48e1ff688fadbfb9986de to your computer and use it in GitHub Desktop.

POWERSHELL connect TERMUX 5555

(Tailscale or Local IP, no Shizuku, just Internet, Wireless Debugging port)

Gist structure

<command>
<output>

OK, get started from PowerShell

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows

PS ... >

PING TAILSCALE (optional)

ping 100.xx.x.xx # <--- Replace with your Tailscale IP
Pinging 100.xx.x.xx with 32 bytes of data:
Reply from 100.xx.x.xx: bytes=32 time=13ms TTL=64
Reply from 100.xx.x.xx: bytes=32 time=29ms TTL=64
Reply from 100.xx.x.xx: bytes=32 time=6ms TTL=64
Reply from 100.xx.x.xx: bytes=32 time=6ms TTL=64
Ping statistics for 100.xx.x.xx:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 6ms, Maximum = 29ms, Average = 13ms

CONNECT VIA WIRELESS DEBUGGING PORT (NOT PAIR PORT)

adb connect 100.xx.x.xx:<port> # example adb connect 100.xx.x.xx:<port>
connected to 100.xx.x.xx:<port>

ADB DEVICES CONNECTED WITH

adb devices
List of devices attached
100.xx.x.xx:<port>       device
adb-xxx._adb-tls-connect._tcp       device

OPEN 5555 port FOREVER*

*: Unless the device rebooted ⚠️

  1. Directly run in Termux (if Shizuku granted)
  2. Through PC connected adb (Powershell)
  3. Through another Termux connected adb
  1. Termux (if Shizuku granted)
  1. Powershell:
adb -s 100.xx.x.xx tcpip 5555

CONNECT to device via 5555 port

adb connect 100.xx.x.xx:5555
connected to 100.xx.x.xx:5555

Now, we're done! Any trouble, go back from here

PS ... >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment