1
0

More than 1 year has passed since last update.

IPアドレスを無限に自動で変更する【Android】

Last updated at Posted at 2023-07-15

adbをインストール

USBデバッグを有効化

image.png

USBテザリングでパソコンとスマホを接続

image.png

IPアドレスを自動で変更する

シェルスクリプトで自動化できます

# wifiはオフにしておいてください
.\adb.exe shell svc wifi disable
# IPアドレスを自動で変更する
.\adb.exe shell "svc data disable && svc data enable"
# 以下でも可
#.\adb.exe shell "svc wifi disable && svc data disable && svc data enable"

IPアドレスが変更されたか確認

# IP変更と確認
.\adb.exe shell "svc data disable && svc data enable && sleep 5 && ip -o a"

# 2回変更確認
.\adb.exe shell "svc data disable && svc data enable && sleep 5 && ip -o a && svc data disable && svc data enable && sleep 5 && ip -o a"

1
0
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
1
0