Skip to content

Instantly share code, notes, and snippets.

@gmoraiz
Last active May 3, 2025 01:09
Show Gist options
  • Save gmoraiz/6e16ffdc03c58813760754039c0bf8f7 to your computer and use it in GitHub Desktop.
Save gmoraiz/6e16ffdc03c58813760754039c0bf8f7 to your computer and use it in GitHub Desktop.
remove emulator-5562 offline from adb devices
#Native Instruments software uses PORT 5562 ON TCP (NTKDaemon)
#Run CMD as Administrador and write:
netstat -ano | findstr :5563
taskkill /PID <PID> /F
@HarukaRepo
Copy link

with the previous code script, namely

> netstat -ano | findstr :5563
> taskkill /PID <PID> /F

output:

PS C:\WINDOWS\system32> netstat -ano | findstr :5563
  TCP    127.0.0.1:5563         0.0.0.0:0              LISTENING       1496
PS C:\WINDOWS\system32> taskkill /PID 1496 /F
SUCCESS: The process with PID 1496 has been terminated.
PS C:\WINDOWS\system32> adb devices
List of devices attached
pnp7yhfqivs4gy5p        device
emulator-5562   offline

if it remains the same, the way to solve it is like this

> adb kill-server
> adb start-server
> adb devices

if you have taskkill but it's still there, it's because the adb cache is still there, try restarting then try again.

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