I want to remotely connect and monitor the device from a different network (without USB)
Is your feature request related to a problem? Please describe. I want to remotely connect and monitor the device from a different network (without USB). Currently, as I tried to set up the stf from my local system, it seems I have to connect to the device using USB at least once to run following commands. Then I can use it without USB but still on the same network as of STF server.
adb tcpip 5555
adb connect mobile-ip:5555
My motive is to able to connect the device from a different network. I understand the concern of speed here but still assuming good network I want to add this feature to the project to able to remotely access the device from a completely different network.
Describe the solution you'd like As I understand the project, we can broadly categories the changes into two parts.
- STFService.apk changes
- A START/STOP button to start/stop a web socket connection to the STF server (public server)
- Use this socket connection for further communication with STF server
- In case of connection failure try reconnecting until the connection is stopped by client
- STF server changes
- Define a public URL of format ws://stfserver.example.com/{deviceIdentifier}/connect to open a websocket connection for device
- make this connection available to process all data from the device and route the data to device queue. Please tell me if this makes sense or let me know if something else is required to achieve the goal.
Describe alternatives you've considered I could not find any alternative to connect my device remotely from a different network.
Additional context I will prefer the solution without root access to the device but If absolutely required then we can get it.
Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.93. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
@rbhardwajpoynt You probably want stf-client https://github.com/Malinskiy/stf-client
I recommend that you setup provider and adb on local servers across your infrastructure, and place a host in your cloud of choice to handle rethink, app, auth, processor and triproxies.
The connection is reverse forwarded to the nodes running provider and adb, from the processor and as long as you have connectivity to the distal ends running the provider and adb, you'll be able to connect to them as you have described using stf-client, with single login point.
The easiest way to describe what the stf-client project does, is that it's proxying the distant devices on the other network, through stf, so that you can just use adb commands locally, as if the device connected thousands of miles away is attached by usb to your computer.
@jon2kx Still we will need local servers connected to the device. But we have our devices that can be placed anywhere without USB connectivity to local servers. So setting up local servers where the device is not a feasible solution for us.
@rbhardwajpoynt any progress on this feature so far?
Hey @imran-abbas1 I end up using the frames generated by minicap and socket.io to stream the frames.
@rbhardwajpoynt how did you establish the connection of device through adb?
@imran-abbas1 I did not use adb, instead sent frames directly to socket.io
Hi, @rbhardwajpoynt As you know we have a service running when the device is connected via USB which I think is responsible for capturing frames and sending to server, so how do you manage to run that particular service in the device while connecting over the network?
Hi @rbhardwajpoynt , as @chakravorty said could you help us out with the above issue?