Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remote debug model can't use adb reverse and request the server on my computer directly #1212

Open
YellowQC opened this issue Apr 2, 2020 · 1 comment

Comments

@YellowQC
Copy link

YellowQC commented Apr 2, 2020

When i use phone directly connecting to my computer by data line,i can use "adb reverse" command so that the phone can visit the web server on my computer directly. But use remote phone on openstf,i can't do this. Why? Is there some way to visit the server on my computer directly?

@denis99999
Copy link
Contributor

denis99999 commented Apr 3, 2020

@huangqichao ,

That works fine on my side, can you provide more information about your configuration and the commands you ran ?

here is an example working fine:

/***** HOST *****/
; run rethinkdb listening on 8080 http port
$ rethinkdb

; adb connect to remote device
$ adb connect 192.168.1.46:15001

; adb reverse redirecting phone's port 8080 to host's port 8080 (rethinkdb)
$ adb -s 192.168.1.46:15001 reverse tcp:8080 tcp:8080
 
/***** PHONE *****/
; open web browser and access URL http://127.0.0.1:8080 (rethinkdb web page)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants