deskreen icon indicating copy to clipboard operation
deskreen copied to clipboard

USB support (without tethering)

Open rayman3003 opened this issue 3 years ago • 9 comments

I heard that using Wifi for a long time, could gives u a headache, So I prefer using USB over Wifi.

So I'm asking to support USB connection between deskreen (Windows version) & and an android device. (& I don't have an-always-on internet on my windows to share with my android device (tethering)), so tethering is out of my options.

I tried some other paid apps (similar to deskreen) that can do this USB connection without tethering & smoothly. So it means that it is possible for USB to work without tethering; But they r not free & also they are not as powerful as deskreen.

So please add support for USB (without tethering) in Deskreen. Please.

rayman3003 avatar Nov 14 '21 12:11 rayman3003

Hum that can indeed be quite a great addition to have this ability !

docop avatar Dec 31 '21 23:12 docop

Non-sense requirement can also give developers headache. If you think your Android device hurt your brain, you should buy a USB to ethernet adapter to keep your device non-wireless.

mingchoi avatar Jan 25 '22 12:01 mingchoi

I am running linux, but this should work on windows just fine. When I am on the go and I don't have some networks available, I connect my tablet via USB and use ADB (android debug bridge) to redirect some local port of my tablet to my laptop. But I guess you would need USB debugging enabled to be able to do that.

In my case after connecting the device and running adb devices I see my tablet listed and then I can set the redirect via the following command:

adb reverse tcp:3131 tcp:3131

Afterwards I am able to find deskreen via localhost:3131 on my tablet. Hope that fits your needs.

chris18191 avatar Jan 25 '22 15:01 chris18191

you should buy a USB to ethernet adapter to keep your device non-wireless.

I'm already using a USB to ethernet adapter.

The problem is that deskreen doesn't support USB.

rayman3003 avatar Jan 25 '22 17:01 rayman3003

but this should work on windows just fine.

Thank u for this solution. But for a reason, this solution doesn't work for me:

I'm using other windows app(s) that installed some drivers on windows & it seems those drivers are already using that 3131 localhost, so when I use "adb reverse tcp:3131" command, it gives me an error & won't allows deskreen to function correctly through USB.

rayman3003 avatar Jan 25 '22 17:01 rayman3003

so when I use "adb reverse tcp:3131" command, it gives me an error

Do you run the exact command from above, i.e. adb reverse tcp:3131 tcp:3131 (with the second tcp:3131)?

But the port problem could be solved by a proposed enhancement I guess (see #167), which yet has to be implemented.

chris18191 avatar Jan 25 '22 17:01 chris18191

HI, I use this "adb reverse tcp:3131 tcp:3131" command, it does show the connection window. After being connected, the default video player is off and my tablet has a black screen (it didn't display the content), and each time 10 seconds after, it displays a deskcreen error dialog: webRTC error occurred and asked me connect again.

lijunhaoabroad avatar Sep 13 '22 06:09 lijunhaoabroad

Hi, would be nice if there would be a option usb conntection, because i have the same issue, the "adb reverse tcp:3131 tcp:3131" trick does not work for me, and to fix this in the future, and also it would improve the connection, and may remove some of the latency

and another request from me would be an option to make a virtual screen in the programm, and if it gets closed, the virtual screen is also gone, that it makes no possible problems

info: i am also on linux, so i am using the linux version

ElectroGehirn avatar Dec 16 '23 14:12 ElectroGehirn