adb-disconnect

wireless Android device disconnector

TLDR

Disconnect from a specific device
$ adb disconnect [192.168.1.100]:5555
Disconnect from all wireless devices
$ adb disconnect

SYNOPSIS

adb disconnect [host[:port]]

DESCRIPTION

adb disconnect terminates wireless adb connections. When called without arguments, it disconnects all connected TCP/IP devices. With a specific host and port, it disconnects only that device.This command only affects wireless connections; USB-connected devices remain connected until physically unplugged.

PARAMETERS

host

IP address or hostname of the device to disconnect
port
TCP port number (default: 5555)

INSTALL

sudo apt install adb
sudo dnf install android-tools
sudo pacman -S android-tools
sudo apk add android-tools-adb
sudo zypper install android-tools
nix profile install nixpkgs#android-tools

CAVEATS

Does not affect USB connections. The device remains in TCP/IP mode after disconnection; you can reconnect using adb connect without reconfiguration.

HISTORY

adb disconnect has been available since wireless debugging was introduced in the Android SDK. It provides a clean way to terminate network connections without killing the entire adb server.

SEE ALSO

adb(1), adb-connect(1), adb-pair(1), adb-kill-server(1)

RESOURCES

Source code · Documentation