• PSA: How to mirror Android onto your PC using scrcpy & adb over Wi-Fi

    From Maria Sophia@mariasophia@comprehension.com to comp.mobile.android,alt.comp.os.windows-10,alt.os.linux on Sat May 9 21:02:40 2026
    From Newsgroup: comp.mobile.android

    PSA:
    How to mirror modern Android onto your PC using scrcpy & adb over Wi-Fi
    (Works on Android 11 and up)

    Windows or Linux, this mirrors your phone on your PC monitor two feet tall. (The keyboard, mouse, clipboard, speakers all mirror Android over Wi-Fi).

    1. Connect your phone to the LAN
    2. Longpress the Wireless Debugging tile at the top of your homescreen
    3. Note the "IP address & Port", for example
    a. IP address (e.g., 192.168.1.2)
    b. Connection Port (e.g., 46003)
    3. Tap "Pair device with pairing code" to get another port & pairing code
    a. IP address (e.g., 192.168.1.2)
    b. Pairing Port (e.g., 40005)
    c. Pairing code (e.g., 450824)
    4. Pair & connect:
    adb pair 192.168.1.2:40005 450824
    adb connect 192.168.1.2:46003
    5. Run scrcpy without leaving an unusable console behind:
    Windows: scrcpy-noconsole.vbs (see below)
    Linux: mirror (see below)

    6. That mirrors Android on your monitor while using the PC mouse, keyboard,
    speakers & clipboard to control the device full-height on your monitor.

    For Linux, this mirrors Android thereafter without the console locking up:
    alias mirror ='scrcpy --keyboard=sdk --always-on-top &'

    This is the default Windows scrcpy-noconsole.vbs shipped with scrcpy.
    strCommand = "cmd /c scrcpy.exe"
    For Each Arg In WScript.Arguments
    strCommand = strCommand & " """ & replace(Arg, """", """""""""") & """"
    Next
    CreateObject("Wscript.Shell").Run strCommand, 0, false

    I modified it slightly to reduce one step when using the Android keyboard.
    ' strCommand = "cmd /c scrcpy.exe"
    strCommand = "cmd /c scrcpy.exe --keyboard=sdk --always-on-top"
    For Each Arg In WScript.Arguments
    strCommand = strCommand & " """ & replace(Arg, """", """""""""") & """"
    Next
    CreateObject("Wscript.Shell").Run strCommand, 0, false

    There is minor one-time setup, such as turning on Developer Options in the phone to enable "USB debugging" & "Wireless debugging" & adding the wireless-debugging tile which you do only once in the life of the phone.

    Note once you have paired a device, you usually only need the adb connect command in the future, especially with a static IP address.
    adb connect
    scrcpy-noconsole.vbs (for Windows)
    mirror (for Linux

    There are, of course, a billion options, but this is a quickie for all.
    And there is the old-school way of using adb connect 192.168.1.2:5555
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Maria Sophia@mariasophia@comprehension.com to comp.mobile.android,alt.comp.os.windows-10,alt.os.linux on Sun May 10 20:01:23 2026
    From Newsgroup: comp.mobile.android

    Maria Sophia wrote:
    There are, of course, a billion options, but this is a quickie for all.
    And there is the old-school way of using adb connect 192.168.1.2:5555

    If you're tapping on your phone while at your desk, you're not efficient.

    There are three ways to connect your phone to your PC to control it from
    the PC (& which can makes the phone as tall & as wide as your monitor is).

    1. Wi-Fi
    2. USB
    3. Hybrid USB + Wi-Fi

    We covered the Wi-Fi steps prior, which work only on Android 11+.

    The USB method is the simplest (and most reliable) overall.
    a. Connect the phone to the PC via USB
    b. adb devices
    c. scrcpy --always-on-top --full-screen --stay-awake --keyboard=sdk

    For all Android versions, including older Android, there's a half-and-half
    a. Connect the phone to the PC via USB
    b. adb tcpip 5555
    c. adb connect 192.168.1.2:5555
    d. scrcpy --always-on-top --full-screen --stay-awake --keyboard=sdk

    In my humblest of opinions, if you're at your PC, there's no reason to
    touch the phone in order to do whatever it is that you want to do with it.

    Note there are a billion scrcpy options, so those are just examples.
    --- Synchronet 3.22a-Linux NewsLink 1.2