scrcpy-android icon indicating copy to clipboard operation
scrcpy-android copied to clipboard

There is no enoughr space to write ip and port

Open vasilislam opened this issue 2 years ago • 8 comments

Cannot write full ip and port bewcuse there is not enough space.

vasilislam avatar Dec 16 '22 10:12 vasilislam

You don't need to write port address. Only the IP is sufficient. It takes the default port of 5555

chinmay0900 avatar Dec 30 '22 05:12 chinmay0900

The device i want to connect does not have the deafult port

vasilislam avatar Dec 30 '22 13:12 vasilislam

You can modify the port address in the file: app/src/main/java/org/las2mile/scrcpy/SendCommands.java:120 and recompile the code. It's fairly easy to recompile. I used WSL on Windows.

  • Install java. I used "sudo apt install gradle" which installed the java for dependency. But the next step is still required.
  • Follow commands from "https://guides.codepath.com/android/installing-android-sdk-tools" - I used the manual way.
  • Run "./gradlew assembleDebug" from the location where this repo was cloned.

I see the current codebase has some Chinese added to it on the homepage. If you need the original, you can find it here: https://gitlab.com/las2mile/scrcpy-android/

chinmay0900 avatar Dec 30 '22 16:12 chinmay0900

https://github.com/chinmay0900/scrcpy-android I have made changes to add the feature and also translated the information provided by [huage2580]. You can use the apk directly from the releases on that page. I have only tested it with 1 phone so compatibility maybe an issue. Let me know if that is the case and I can fix it in my free time.

chinmay0900 avatar Dec 30 '22 21:12 chinmay0900

https://github.com/chinmay0900/scrcpy-android I have made changes to add the feature and also translated the information provided by [huage2580]. You can use the apk directly from the releases on that page. I have only tested it with 1 phone so compatibility maybe an issue. Let me know if that is the case and I can fix it in my free time.

thanks it works fine when control device and remote android devices are in the same network. But when both devices use tailscale vpn, control device only shows black screen. Is it possible to work within tailscale network?

happyman avatar Mar 16 '24 01:03 happyman

ok I have modifed some code, and now https://github.com/happyman/scrcpy-android works for me.

happyman avatar Mar 18 '24 09:03 happyman

ok I have modifed some code, and now https://github.com/happyman/scrcpy-android works for me.

Now it is possible to enter a different port, but still for me i cannot connect, no prompt appeart to accept the connection, an ability to pair first and then connect would fix the problem

vasilislam avatar Mar 19 '24 13:03 vasilislam

(closed it by mistake)

vasilislam avatar Mar 19 '24 13:03 vasilislam