Genymobile / gnirehtet

Gnirehtet provides reverse tethering for Android
Apache License 2.0
6.34k stars 581 forks source link

mistake gnirehtet ERROR Main: Cannot start client: Command adb ["reverse", "tcp:31416", "tcp:31416"] returned with value 1 #428

Open faermot opened 2 years ago

faermot commented 2 years ago

At startup gnirehtet-run.cmd there is such an error: 2022-01-14 18:18:16.279 INFO Main: Checking gnirehtet client... 2022-01-14 18:18:16.366 INFO Main: Starting relay server... 2022-01-14 18:18:16.366 INFO Main: Starting client... 2022-01-14 18:18:16.376 INFO Relay: Relay server started error: cannot bind listener: Address already in use 2022-01-14 18:18:16.396 ERROR Main: Cannot start client: Command adb ["reverse", "tcp:31416", "tcp:31416"] returned with value 1

I don't understand it, adb is installed, debugging is enabled

telephone: Huawei y9s help me plis

faermot commented 2 years ago

at startup, adb devices issues: Microsoft Windows [Version 6.1.7601] (c) Корпорация Майкрософт (Microsoft Corp.), 2009. Все права защищены.

C:\Users\Alexey>adb devices adb server version (32) doesn't match this client (41); killing... error: failed to read response from server

C:\Users\Alexey>

rom1v commented 2 years ago

https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#device-unauthorized

faermot commented 2 years ago

thanks for the quick response when entering adb devices outputs: Microsoft Windows [Version 6.1.7601] (c) Корпорация Майкрософт (Microsoft Corp.), 2009. Все права защищены.

C:\Users\Alexey>adb devices List of devices attached 78KNW19C02004323 unauthorized

C:\Users\Alexey>

At startup gnirehtet-run.cmd all the same mistake

faermot commented 2 years ago

I disconnected and connected the device:

Microsoft Windows [Version 6.1.7601] (c) Корпорация Майкрософт (Microsoft Corp.), 2009. Все права защищены.

C:\Users\Alexey>adb devices List of devices attached 78KNW19C02004323 device

C:\Users\Alexey>

faermot commented 2 years ago

https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#device-unauthorized I don't understand what I need to do, and what is scrcpy

rom1v commented 2 years ago

But device unauthorized is an adb error, not related to scrcpy or gnirehtet.

78KNW19C02004323 device

OK so now your device is authorized. What's the problem now?

rom1v commented 2 years ago

adb server version (32) doesn't match this client (41); killing...

https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#conflicts-between-adb-versions (again, it's an adb issue, not gnirehtet or scrcpy)

faermot commented 2 years ago

Но несанкционированное устройство-это ошибка adb, не связанная с scrcpy или gnirehtet.

78KNW19C02004323 устройство

Итак, теперь ваше устройство авторизовано. В чем теперь проблема?

when running gnirehtet-run.cmd error:

2022-01-14 19:29:41.817 INFO Main: Checking gnirehtet client... 2022-01-14 19:29:41.929 INFO Main: Starting relay server... 2022-01-14 19:29:41.929 INFO Main: Starting client... 2022-01-14 19:29:41.929 INFO Relay: Relay server started error: cannot bind listener: Address already in use 2022-01-14 19:29:41.959 ERROR Main: Cannot start client: Command adb ["reverse", "tcp:31416", "tcp:31416"] returned with value 1

rom1v commented 2 years ago

Address already in use

There is already something listening on this port (another gnirehtet instance?)

What is the result of:

adb reverse --list
adb reverse tcp:31416 tcp:31416
faermot commented 2 years ago

Адрес уже используется

На этом порту уже что-то прослушивается (еще один экземпляр gnirehtet?)

Каков результат:

adb reverse --list
adb reverse tcp:31416 tcp:31416

Microsoft Windows [Version 6.1.7601] (c) Корпорация Майкрософт (Microsoft Corp.), 2009. Все права защищены.

C:\Users\Alexey>adb reverse --list

C:\Users\Alexey>adb reverse tcp:31416 tcp:31416 adb.exe: error: cannot bind listener: Address already in use

C:\Users\Alexey>

faermot commented 2 years ago

Адрес уже используется

На этом порту уже что-то прослушивается (еще один экземпляр gnirehtet?)

Каков результат:

adb reverse --list
adb reverse tcp:31416 tcp:31416

I kind of have only one gnirehtet

faermot commented 2 years ago

help...

WhenMarkers commented 2 years ago

have you authorized your phone? I mean, try revoking the authorizations first on the Developer's Options. Then the confirmation to authorize will pop up again and you have to authorized it.