Forrest logo
back to the adb tool

adb-reverse:tldr:cc517

adb-reverse: List all reverse socket connections from emulators and devices.
$ adb reverse --list
try on your machine

The command "adb reverse --list" is used with the Android Debug Bridge (adb) tool to list all the active reverse port forwarding routes between the Android device and the development machine.

In simpler terms, when developing an Android application, you might need to access a local server running on your development machine from the Android device. However, by default, the Android device cannot directly access the development machine's localhost. To enable this, you can set up a reverse port forwarding, which allows traffic from the device to be redirected to a specific port on the development machine.

The "adb reverse --list" command displays a list of all the active reverse port forwarding routes that have been established between the Android device and the development machine. It shows the device port number and the corresponding development machine port number for each active route.

This command can help you verify if the reverse port forwarding routes are correctly set up and if the desired connections between the Android device and the development machine can be established.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the adb tool