Genymobile / gnirehtet

Gnirehtet provides reverse tethering for Android
Apache License 2.0
6.41k stars 587 forks source link

Java vs. Rust, Java wins with Virtual Desktop #513

Open DocMAX opened 1 year ago

DocMAX commented 1 year ago

I use this tool to get Virtual Desktop working with VR over USB. Unfortunatelly with Rust the app disconnects every few seconds. Java is stable. How can we debug this?

GORILA1221 commented 1 year ago

Я использую этот инструмент, чтобы заставить виртуальный рабочий стол работать с виртуальной реальностью через USB. К сожалению, с Rust приложение отключается каждые несколько секунд. Java стабильна. Как мы можем опровергнуть это?

Hello, are you using VD on a local network, or remotely?

DocMAX commented 1 year ago

Not sure how you mean it. I start VD on my laptop and connect my VR via USB-C to my laptop.

Krzeszny commented 8 months ago

Same issue. Java works fine at 150Mbit bandwidth (unstable above that), but Rust keeps disconnecting. It works for like 10 seconds on launch and then it starts spitting out [ConnectionRefused] forever.

2024-03-07 17:49:21.549 WARN TcpConnection: 10.0.0.2:33827 -> 40.89.161.236:38841 Unexpected first packet 433045339; acking 0; flags=4
2024-03-07 17:49:21.549 INFO TcpConnection: 10.0.0.2:33827 -> 40.89.161.236:38841 Close
2024-03-07 17:49:21.652 INFO TcpConnection: 10.0.0.2:33995 -> 192.168.1.135:38840 Open
2024-03-07 17:49:21.653 INFO TcpConnection: 10.0.0.2:46711 -> 192.168.56.1:38840 Open
2024-03-07 17:49:21.657 INFO TcpConnection: 10.0.0.2:37185 -> 40.89.161.236:38821 Open
2024-03-07 17:49:21.740 INFO TcpConnection: 10.0.0.2:37185 -> 40.89.161.236:38821 Close
2024-03-07 17:49:21.741 INFO TcpConnection: 10.0.0.2:37185 -> 40.89.161.236:38821 Open
2024-03-07 17:49:21.741 WARN TcpConnection: 10.0.0.2:37185 -> 40.89.161.236:38821 Unexpected first packet 1361624697; acking 0; flags=4
2024-03-07 17:49:21.741 INFO TcpConnection: 10.0.0.2:37185 -> 40.89.161.236:38821 Close
2024-03-07 17:49:21.859 INFO TcpConnection: 10.0.0.2:37367 -> 192.168.1.135:38820 Open
2024-03-07 17:49:21.861 INFO TcpConnection: 10.0.0.2:40749 -> 192.168.56.1:38820 Open
2024-03-07 17:49:23.295 ERROR TcpConnection: 10.0.0.2:36387 -> 192.168.56.1:38810 Cannot read: [ConnectionRefused] No connection could be made because the target machine actively refused it. (os error 10061)
2024-03-07 17:49:23.296 INFO TcpConnection: 10.0.0.2:36387 -> 192.168.56.1:38810 Close
2024-03-07 17:49:23.470 ERROR TcpConnection: 10.0.0.2:38865 -> 192.168.56.1:38830 Cannot read: [ConnectionRefused] No connection could be made because the target machine actively refused it. (os error 10061)
2024-03-07 17:49:23.471 INFO TcpConnection: 10.0.0.2:38865 -> 192.168.56.1:38830 Close
2024-03-07 17:49:23.673 ERROR TcpConnection: 10.0.0.2:46711 -> 192.168.56.1:38840 Cannot read: [ConnectionRefused] No connection could be made because the target machine actively refused it. (os error 10061)
2024-03-07 17:49:23.674 INFO TcpConnection: 10.0.0.2:46711 -> 192.168.56.1:38840 Close
2024-03-07 17:49:23.892 ERROR TcpConnection: 10.0.0.2:40749 -> 192.168.56.1:38820 Cannot read: [ConnectionRefused] No connection could be made because the target machine actively refused it. (os error 10061)
2024-03-07 17:49:23.892 INFO TcpConnection: 10.0.0.2:40749 -> 192.168.56.1:38820 Close

@rom1v

petermg commented 6 months ago

Same thing here. If it wasn't for this post I wouldn't have known it works fine with Java. Sadly the rust keeps disconnecting with the error posted in the reply above mine. :\

guennid commented 1 month ago

Same problem here. Rust version cant be used, it reconnects every 10 seconds