0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Android】WiFi経由で実機デバッグするには

Last updated at Posted at 2020-12-23

Android端末にWiFi経由で実機デバッグする方法です。

前提条件

  • Android端末とPCが同じアクセスポイントに接続されている。
  • 有線で接続されている。

adbコマンドでリモート接続する方法

step1: まずは、端末をtcpモードに切り替えます(※ポート番号は自由に設定できる)

adb tcpip 5555

step2: 端末のIPアドレスを確認します

adb shell ip addr show wlan0

step3: 確認したIPアドレスに対して、接続します(※5555は省略可能)

adb connect xxx.xx.xx.xx:5555

最後に

AndroidStudioで確認すると、無線で実機デバッグすることができます。
また、机上から有線ケーブルを減らせるので快適です。
端末を再起動するとIPアドレスが変わってしまうので、固定IPに設定することをお勧めします。
【設定方法】
https://www.buffalo.jp/support/faq/detail/15994.html

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?