gnirehtet icon indicating copy to clipboard operation
gnirehtet copied to clipboard

Need client to reconnect after USB cable unplugging and plugged back

Open SanjayDragonBoard opened this issue 5 years ago • 6 comments

This is not really an issue, but an enhancement. This application is working perfect for my use, but it is mandatory for app to automatically re-establish tunnel after USB cable gets unplugged and plug back. This needs to happen without manual intervention. If someone here can do that enhancement (may be by adding constant connection check every 30 sec at client side) please connect and let me know the estimated cost.

Regards, Sanjay Aggarwal [email protected]

SanjayDragonBoard avatar Feb 18 '20 20:02 SanjayDragonBoard

gnirehtet autorun

?

rom1v avatar Feb 18 '20 20:02 rom1v

I think autorun is server side option. When I pulg USB cable out and connect back, client does not try to connect back.

SanjayDragonBoard avatar Feb 18 '20 20:02 SanjayDragonBoard

The server executes what is necessary to restart the client.

rom1v avatar Feb 18 '20 20:02 rom1v

Thanks. I will try with this option. As far connection get re-establish after USB wire disconnect/connect, that will serve my purpose. Thanks again for your help. I will update after test.

On Tue, Feb 18, 2020 at 2:21 PM Romain Vimont [email protected] wrote:

The server executes what is necessary to restart the client.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Genymobile/gnirehtet/issues/266?email_source=notifications&email_token=AE4X6I7LBY5RLJDXCEZ7IW3RDQ7LHA5CNFSM4KXLMNJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMENVFY#issuecomment-587782807, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE4X6I7J4BKHQK7JL6ACAITRDQ7LHANCNFSM4KXLMNJA .

SanjayDragonBoard avatar Feb 18 '20 20:02 SanjayDragonBoard

Sorry to bug you on this, but I am having the same issue what others also posted. I am stuck at below command. Running on Windows, Android version 8.0 on Samsung Galaxy-S7. adb devices working fine. Old version of gnirehtet is working fine as well. New version 2.4 has this issue and "gnirehtet autorun" is supported only on new version.

gnirehtet start ce051605c21da90103 2020-02-18 21:11:54.319 I Gnirehtet: Checking gnirehtet client...

SanjayDragonBoard avatar Feb 19 '20 03:02 SanjayDragonBoard

I have a different problem. If I accidentally unplug my cable without disconnecting my phone beforehand, I cant get gnirehtet working anymore. The only way I can get it working again is by restarting my phone. Im using Windows and a Samsung Galaxy S6, Android 7.0.

Hiqqup avatar Jun 07 '21 00:06 Hiqqup