Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relay doesn't start #358

Closed
ghost opened this issue Feb 4, 2021 · 5 comments
Closed

Relay doesn't start #358

ghost opened this issue Feb 4, 2021 · 5 comments

Comments

@ghost
Copy link

ghost commented Feb 4, 2021

PS C:\Users\Shop\Downloads\Compressed\gnirehtet-java 1> .\gnirehtet autorun
2021-02-04 21:02:34.152 I Gnirehtet: Starting relay server on port 31416...
2021-02-04 21:02:34.222 I Relay: Relay server started
2021-02-04 21:02:34.232 I Gnirehtet: Checking gnirehtet client...
2021-02-04 21:02:34.482 E AdbMonitor: Failed to monitor adb devices
java.io.IOException: An existing connection was forcibly closed by the remote ho
st
at sun.nio.ch.SocketDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(Unknown Source)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
at sun.nio.ch.IOUtil.read(Unknown Source)
at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
at com.genymobile.gnirehtet.AdbMonitor.fillBufferFrom(AdbMonitor.java:12
8)
at com.genymobile.gnirehtet.AdbMonitor.nextPacket(AdbMonitor.java:120)
at com.genymobile.gnirehtet.AdbMonitor.trackDevicesOnChannel(AdbMonitor.
java:90)
at com.genymobile.gnirehtet.AdbMonitor.trackDevices(AdbMonitor.java:76)
at com.genymobile.gnirehtet.AdbMonitor.monitor(AdbMonitor.java:64)
at com.genymobile.gnirehtet.Main.cmdAutostart(Main.java:290)
at com.genymobile.gnirehtet.Main.lambda$cmdAutorun$1(Main.java:253)
at java.lang.Thread.run(Unknown Source)
2021-02-04 21:02:34.502 I AdbMonitor: Restarting adb deamon

@rom1v
Copy link
Collaborator

rom1v commented Feb 4, 2021

You probably have another version of adb running somewhere. If you execute adb devices from the gnirehtet directory, does it works immediately?

@ghost
Copy link
Author

ghost commented Feb 4, 2021

Thanks for the reply... But how do i execute adb devices..?

@gingercookies
Copy link

Thanks for the reply... But how do i execute adb devices..?

Find where you extract Android SDK platform tools, hold shift + right click and choose "Open PowerShell windows here"
After that you can excute adb devices by command ./adb devices
image

@ghost
Copy link
Author

ghost commented Feb 10, 2021

Thanks for the reply... But how do i execute adb devices..?

Find where you extract Android SDK platform tools, hold shift + right click and choose "Open PowerShell windows here"
After that you can excute adb devices by command ./adb devices
image

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

  • daemon started successfully
    List of devices attached
    R58M96W3RTF device

But the relay is not working.

@rom1v
Copy link
Collaborator

rom1v commented Feb 10, 2021

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

You have several adb daemon running. Find the other (old) adb running on your computer, and use the same for both gnirehtet and your other adb-dependant programs.

@ghost ghost closed this as completed Jan 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants