ADBDevice & ConnectionSafe
adb disconnect [ip:port]
Disconnect wireless device
What It Does
Terminates an active TCP/IP wireless ADB connection to a specific device, or disconnects all TCP devices if no address is supplied.
Command Syntax
Terminal
$
adb disconnect [<host>[:<port>]]Parameters & Placeholders Breakdown
This command syntax includes specific placeholder tokens. Below is an explanation of what each word represents and concrete real-world values to replace it with:
<host>Device IP Address or HostnameThe local Wi-Fi IPv4 address or hostname assigned to the Android device on your local network.
Real-world value:192.168.1.105
Command syntax:
adb connect 192.168.1.105:5555Find this in Android Settings > About Phone > Status > IP Address.
<port>Network Port NumberThe TCP network port number used for ADB daemon communication over Wi-Fi or USB forwarding.
Real-world value:5555
Command syntax:
adb tcpip 5555 (or: adb connect 192.168.1.50:5555)Port 5555 is the standard default port for ADB over Wi-Fi. Ports below 1024 require root privileges.
[ip:port]Network Port NumberThe TCP network port number used for ADB daemon communication over Wi-Fi or USB forwarding.
Real-world value:5555
Command syntax:
adb tcpip 5555 (or: adb connect 192.168.1.50:5555)Port 5555 is the standard default port for ADB over Wi-Fi. Ports below 1024 require root privileges.
Usage Examples
$
adb disconnect 192.168.1.105:5555$
adb disconnectOptions & Flags
| Flag / Parameter | Description |
|---|---|
| [host:port] | Specific target address to drop. If omitted, all wireless sessions are severed. |
Prerequisites & Requirements
- Active wireless connection
Related Commands
Found an error or missing flag for
adb disconnect [ip:port]?Submit a correction or request additional examples on GitHub.
Having issue? Contact @mkr_infinity
Direct technical assistance & ROM flashing troubleshooting by Mohammad Kaif Raja.