File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 11# adb forward
22
3- > Connect to an Android device wirelessly .
3+ > Forward socket connections to a connected Android device or emulator .
44> More information: < https://developer.android.com/tools/adb > .
55
6- - Forward a TCP port:
6+ - Forward a TCP port to the only connected emulator or device :
77
88` adb forward tcp:{{local_port}} tcp:{{remote_port}} `
99
10+ - Forward a TCP port to a specific emulator or device (by device ID / [ s] erial number):
11+
12+ ` adb -s {{device_ID}} forward tcp:{{local_port}} tcp:{{remote_port}} `
13+
1014- List all forwardings:
1115
1216` adb forward --list `
Original file line number Diff line number Diff line change 77
88` adb reverse --list `
99
10- - Reverse a TCP port from an emulator or device to localhost:
10+ - Reverse a TCP port from the only connected emulator or device to localhost:
1111
1212` adb reverse tcp:{{remote_port}} tcp:{{local_port}} `
1313
14+ - Reverse a TCP port from a specific emulator or device (by device ID / [ s] erial number) to localhost:
15+
16+ ` adb -s {{device_ID}} adb reverse tcp:{{remote_port}} tcp:{{local_port}} `
17+
1418- Remove a reverse socket connections from an emulator or device:
1519
1620` adb reverse --remove tcp:{{remote_port}} `
You can’t perform that action at this time.
0 commit comments