The following command kills the local adb service:
C:android-sdkplatform-tools>adb.exe kill-server
After killing the local adb service, issue the adb devices command. You will see that the server is started, as shown in the following screenshot:
We will now access the ADB shell on the Android device.