#1071·stf

Deploy stf service on public network.

Author: EltonZhongCreated Jul 3, 2019Updated Oct 12, 2023
Labelsquestion

How can I deploy stf service on public network?

Describe the solution you'd like I have a centos server exposed to public network. While my laptop connecting to android devices is in private network. I can access centos server ip address from my laptop, cause it's in public network, and of course the centos can not access my laptop with http protocal(while websocket will work).

I start my stf master on my centos server, and I want to connect my android devices to it, with running command below on my laptop:

bash
stf provider --name id_mac --min-port 7400 --max-port 7700 --connect-sub tcp://$server_ip:7114 --connect-push tcp://$server_ip:7116 --group-timeout 20000 --public-ip $server_ip --storage-url http://$server_ip:7100/ --vnc-initial-size 600x800 --allow-remote --adb-host $local --adb-port 5037

But it fails with :

bash
Providing all 0 of 1 device(s); ignoring "5ab031e"

I notice that log Receiving input from "tcp://***:7114" shows. Is that stf master is pulling from stf slave with protocols like http? Websocket or pulling from slave side will just be ok. Or did I configure something wrong?

Need your kindly help, thank you!!!