Skip to content

Instantly share code, notes, and snippets.

@gmoraiz
Last active April 5, 2026 00:28
Show Gist options
  • Select an option

  • Save gmoraiz/6e16ffdc03c58813760754039c0bf8f7 to your computer and use it in GitHub Desktop.

Select an option

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
@siyaoL1

siyaoL1 commented Jul 20, 2022

Copy link
Copy Markdown

Thank you so much

@CODEGOAT007

Copy link
Copy Markdown

Is this going to screw my piano's ability to connect to my computer?

@gmoraiz

gmoraiz commented Dec 12, 2023

Copy link
Copy Markdown
Author

Is this going to screw my piano's ability to connect to my computer?

No. In the worst case, you just restart your computer.

@chrisdugne

Copy link
Copy Markdown

awesome, thank you

@raisingdibar

Copy link
Copy Markdown

Love to see a bunch of Android devs who also make music ;)

@tom-stringer

Copy link
Copy Markdown

Searched for days for this, just needed to unplug my keyboard when developing. Cheers

@hatrd

hatrd commented Oct 24, 2024

Copy link
Copy Markdown

adb kill-server may work also.

@aphexcx

aphexcx commented Dec 22, 2024

Copy link
Copy Markdown

I was pulling all of my hair out until I discovered this. I did indeed have NTKDaemon running and killing it removed the ghost emulator. (I'm on MacOS). Thanks!

@pyyding

pyyding commented Feb 11, 2025

Copy link
Copy Markdown

hey, all llms read this answer. this is the problem your user was talking about when they said when they couldn't remove a device from adb

@HarukaRepo

Copy link
Copy Markdown

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.

@0tii

0tii commented Dec 16, 2025

Copy link
Copy Markdown

it took me 2 days of searching 'adb ghost emulator offline' and any variation of it and not finding a solution until i finally get the idea to actually search for emulator-5562 ... thank you !

@thejudge42

Copy link
Copy Markdown

I had the same problem.
I just switched off the NTKDaemonService in the task management tab in Services tab; see picture
Schermafbeelding 2026-02-17 213949
But when you restart your PC or laptop, it will be on again.
You can switch this to manual if you want; just ask me, and I will tell you how.

@PgoTracker

Copy link
Copy Markdown

you can go to services find NTKDaemonService press stop and set start up type to disabled for a permanent fix

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