DeviceFarmer / stf

Control and manage Android devices from your browser.
https://devicefarmer.github.io
Other
3.51k stars 492 forks source link

is it possible to connect an android device with different network then the stf server ? #784

Open xmpppargat opened 5 months ago

xmpppargat commented 5 months ago

I am trying to connect my device which is in India and my server on AWS ubuntu.

I am not sure what is the possibility of connecting adb using public IP.

is it always adb on the server should be used to connect to device ip and port or reverse can be possble as well ?

csdaa commented 4 months ago

It can be achieved and I did the experiment two years ago.

It can be achieved through port forwarding, I use a third party, you search for the following relevant service providers in your country.

My script at the time:

cat stf_node_x.sh
stf provider --name 50.187  --min-port 7400 --max-port 7700 --connect-sub tcp://127.0.0.1:7114 --connect-push tcp://127.0.0.1:7116 --group-timeout 900 --public-ip xx.xx.xx.xx --storage-url http://localhost:7100/ --adb-host subDomain.aa.com --adb-port 5037 --vnc-initial-size 600*800 --mute-master never --allow-remote