adb forward & adb reverse

adb forward & adb reverse

  • 2020-9-13
1
adb reverse tcp:3000 tcp:3000

In this way, you can access your laptop's server (http://localhost:3000 for example) on your Android device by visit http://localhost:3000.

1
adb forward tcp:3000 tcp:3000

This command means forward your Android device's web server to your laptop.