Skip to content

Instantly share code, notes, and snippets.

@pjhjohn
Created July 11, 2017 00:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjhjohn/0d1b94e90328936e7c228aa76bf8a939 to your computer and use it in GitHub Desktop.
Save pjhjohn/0d1b94e90328936e7c228aa76bf8a939 to your computer and use it in GitHub Desktop.

Remote Debugging using wi-fi

We need remote debugger to get logs from the device through logcat. Both the device and PC should be under same wi-fi router : like mrl

  1. Connect the device to the PC using USB and establish an ADB connection
  2. adb tcpip 5555 # 5555 is the port number
  3. Disconnect your USB cable
  4. adb connect MOBILE_IP:port => adb connect 192.IP_REMAINING:5555
  5. Tern on AndroidStudio and check the logcat
  • You can get the ip address by dialing to *#*#4636#*#* > Wifi Information > Wifi Status (> Refresh)

References : Checking Device IP, Remote Logging

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