Wi-Fi 経由での ADB

oka
oka
Sep 4, 2018 · 1 min read

無線LAN 経由で Android をデバッグするのに、Android の IPアドレスをわざわざ本体を操作して調べている記事がたくさん出てきたが、手元の環境では adb shell で ifconfig を叩くことができた。すなわち、 Wi-Fi 経由でのデバッグに必要な手順は以下となる。

  1. USB で Android をつなぐ
  2. IPアドレスを調べる
adb shell ifconfig

3. 無線でつなぐ

adb tcpip 5555
adb connect IPアドレス:5555

4. Android を抜く。

これで、無線経由で adb できるし、Android Studio からも見えるようになる。5555のポートを使う理由は知らない。


Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade