This is an old revision of the document!
Today we are going to learn how to use adb tcp forwarding
to access an android phone shell (or screen) using multiple tcp/ip port forwardings
First, connect the phone via usb (this is needed) and issue:
# You can choose any port you want adb tcpip 5557 # Save the phone ip somewhere adb shell ifconfig # Expose the 5558 port to forward it on 5557 adb forward tcp:5558 tcp:5557
Once this is enabled, you can stop using the usb cable
To connect to the adb device by it's ip address:
adb connect [YOUR_PHONE_IP]:5557