Showing posts with label scrcpy. Show all posts
Showing posts with label scrcpy. Show all posts

Monday, 20 July 2026

Konek scrcpry hp ke laptop dengan wifi

 Setelah sekali mengaktifkan ADB over Wi-Fi dengan:

adb tcpip 5555

langkah selanjutnya setiap kali ingin memakai scrcpy lewat Wi-Fi adalah:

1. Hubungkan ADB ke HP

adb connect 192.168.10.186:5555

Jika berhasil:

connected to 192.168.10.186:5555

2. Jalankan scrcpy

scrcpy

Karena hanya ada satu perangkat ADB yang terhubung, scrcpy akan otomatis menggunakan koneksi Wi-Fi tersebut.


Jika sebelumnya masih ada koneksi USB

Cek:

adb devices

Misalnya muncul:

List of devices attached
192.168.10.186:5555    device

Kalau ada dua perangkat (USB dan Wi-Fi), jalankan:

scrcpy -s 192.168.10.186:5555

Jika HP di-restart

ADB over TCP/IP biasanya nonaktif setelah HP reboot. Maka Anda perlu:

  1. Sambungkan kabel USB.

  2. Jalankan:

    adb tcpip 5555
    
  3. Cabut kabel.

  4. Hubungkan lagi:

    adb connect 192.168.10.186:5555
    

Kalau HP mendukung Wireless Debugging

Karena Motorola moto g45 5G Anda menggunakan Android 15, kemungkinan besar sudah mendukung Wireless Debugging.

Dengan fitur ini, Anda tidak perlu lagi menjalankan adb tcpip 5555 setelah reboot. Cukup lakukan proses pairing sekali, lalu setiap kali cukup:

adb connect IP:PORT
scrcpy

Ini lebih praktis dan merupakan metode yang direkomendasikan untuk Android 11 ke atas. Saya bisa pandu langkah-langkahnya jika Anda ingin beralih ke metode tersebut.

Wednesday, 7 May 2025

konek scrcpy dengan hotspot

 $ adb shell ip route | awk '{print $9}'
192.168.100.20

 

:~$ adb tcpip 5555
restarting in TCP mode port: 5555
 

:~$ adb connect 192.168.100.20:5555
connected to 192.168.100.20:5555

:~$ scrcpy
scrcpy 1.25 <https://github.com/Genymobile/scrcpy>
/usr/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 127.6 MB/s (41650 bytes in 0.000s)
[server] INFO: Device: ITEL itel P661N (Android 13)
INFO: Renderer: opengl
INFO: OpenGL version: 4.6 (Compatibility Profile) Mesa 24.2.8-1ubuntu1~24.04.1
INFO: Trilinear filtering enabled
INFO: Initial texture: 720x1608
INFO: New texture: 1608x720
INFO: New texture: 720x1608
WARN: Device disconnected

Scrcpy

 

Manual

Alternatively, it is possible to enable the TCP/IP connection manually using adb:

  1. Plug the device into a USB port on your computer.

  2. Connect the device to the same Wi-Fi network as your computer.

  3. Get your device IP address, in Settings → About phone → Status, or by executing this command:

    adb shell ip route | awk '{print $9}'

  1. Enable adb over TCP/IP on your device: adb tcpip 5555.

  2. Unplug your device.

  3. Connect to your device: adb connect DEVICE_IP:5555 (replace DEVICE_IP with the device IP address you found).

  4. Run scrcpy as usual.

  5. Run adb disconnect once you're done.

Since Android 11, a wireless debugging option allows you to bypass having to physically connect your device to your computer.

Wednesday, 2 November 2022

Build Scrcpy

Build scrcpy

Here are the instructions to build scrcpy (client and server).

Simple

If you just want to install the latest release from master, follow this simplified process.

First, you need to install the required packages:

# for Debian/Ubuntu
sudo apt install ffmpeg libsdl2-2.0-0 adb wget \
                 gcc git pkg-config meson ninja-build libsdl2-dev \
                 libavcodec-dev libavdevice-dev libavformat-dev libavutil-dev \
                 libusb-1.0-0 libusb-1.0-0-dev

Then clone the repo and execute the installation script (source):

git clone https://github.com/Genymobile/scrcpy
cd scrcpy
./install_release.sh

Monday, 11 October 2021

SCRCPY

$  scrcpy

$ adb tcpip 5555

$ adb connect ip_device:5555

$ scrcpy

Wednesday, 16 June 2021

alamat github scrcpy

https://github.com/Genymobile/scrcpy/blob/master/README.id.md https://github.com/Genymobile/scrcpy https://github.com/Genymobile/scrcpy/blob/master/README.md#windows https://github.com/Genymobile/scrcpy/releases/download/v1.17/scrcpy-win64-v1.17.zip

Perintah scrcpy

scrcpy --help Usage: scrcpy [options] Options: --always-on-top Make scrcpy window always on top (above other windows). -b, --bit-rate value Encode the video at the given bit-rate, expressed in bits/s. Unit suffixes are supported: 'K' (x1000) and 'M' (x1000000). Default is 8000000. --crop width:height:x:y Crop the device screen on the server. The values are expressed in the device natural orientation (typically, portrait for a phone, landscape for a tablet). Any --max-size value is computed on the cropped size. -f, --fullscreen Start in fullscreen. -h, --help Print this help. --max-fps value Limit the frame rate of screen capture (only supported on devices with Android >= 10). -m, --max-size value Limit both the width and height of the video to value. The other dimension is computed so that the device aspect-ratio is preserved. Default is 0 (unlimited). -n, --no-control Disable device control (mirror the device in read-only). -N, --no-display Do not display device (only when screen recording is enabled). -p, --port port Set the TCP port the client listens on. Default is 27183. --prefer-text Inject alpha characters and space as text events instead of key events. This avoids issues when combining multiple keys to enter a special character, but breaks the expected behavior of alpha keys in games (typically WASD). --push-target path Set the target directory for pushing files to the device by drag & drop. It is passed as-is to "adb push". Default is "/sdcard/". -r, --record file.mp4 Record screen to file. The format is determined by the --record-format option if set, or by the file extension (.mp4 or .mkv). --record-format format Force recording format (either mp4 or mkv). --render-expired-frames By default, to minimize latency, scrcpy always renders the last available decoded frame, and drops any previous ones. This flag forces to render all frames, at a cost of a possible increased latency. -s, --serial serial The device serial number. Mandatory only if several devices are connected to adb. -S, --turn-screen-off Turn the device screen off immediately. -t, --show-touches Enable "show touches" on start, disable on quit. It only shows physical touches (not clicks from scrcpy). -v, --version Print the version of scrcpy. --window-borderless Disable window decorations (display borderless window). --window-title text Set a custom window title. --window-x value Set the initial window horizontal position. Default is -1 (automatic). --window-y value Set the initial window vertical position. Default is -1 (automatic). --window-width value Set the initial window width. Default is 0 (automatic). --window-height value Set the initial window width. Default is 0 (automatic). Shortcuts: Ctrl+f switch fullscreen mode Ctrl+g resize window to 1:1 (pixel-perfect) Ctrl+x Double-click on black borders resize window to remove black borders Ctrl+h Middle-click click on HOME Ctrl+b Ctrl+Backspace Right-click (when screen is on) click on BACK Ctrl+s click on APP_SWITCH Ctrl+m click on MENU Ctrl+Up click on VOLUME_UP Ctrl+Down click on VOLUME_DOWN Ctrl+p click on POWER (turn screen on/off) Right-click (when screen is off) power on Ctrl+o turn device screen off (keep mirroring) Ctrl+r rotate device screen Ctrl+n expand notification panel Ctrl+Shift+n collapse notification panel Ctrl+c copy device clipboard to computer Ctrl+v paste computer clipboard to device Ctrl+Shift+v copy computer clipboard to device Ctrl+i enable/disable FPS counter (print frames/second in logs) Drag & drop APK file install APK from computer

Wednesday, 10 March 2021

Install scrcpy

 $ sudo apt install scrcpy
[sudo] password for dhwan:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  scrcpy-server
The following NEW packages will be installed:
  scrcpy scrcpy-server
0 upgraded, 2 newly installed, 0 to remove and 25 not upgraded.
Need to get 56,4 kB of archives.
After this operation, 132 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://id.archive.ubuntu.com/ubuntu focal/universe amd64 scrcpy-server all 1.12.1+ds-1 [27,0 kB]
Get:2 http://id.archive.ubuntu.com/ubuntu focal/universe amd64 scrcpy amd64 1.12.1+ds-1 [29,4 kB]
Fetched 56,4 kB in 3s (18,7 kB/s)
Selecting previously unselected package scrcpy-server.
(Reading database ... 287694 files and directories currently installed.)
Preparing to unpack .../scrcpy-server_1.12.1+ds-1_all.deb ...
Unpacking scrcpy-server (1.12.1+ds-1) ...
Selecting previously unselected package scrcpy.
Preparing to unpack .../scrcpy_1.12.1+ds-1_amd64.deb ...
Unpacking scrcpy (1.12.1+ds-1) ...
Setting up scrcpy-server (1.12.1+ds-1) ...
Setting up scrcpy (1.12.1+ds-1) ...
Processing triggers for man-db (2.9.1-1) ...