Groups | Search | Server Info | Login | Register


Groups > comp.mobile.android > #153883

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

From Roger Mills <mills37.fslife@gmail.com>
Newsgroups comp.mobile.android, alt.comp.os.windows-10, alt.os.linux
Subject Re: PSA: How to mirror Android onto your PC using scrcpy & adb over Wi-Fi
Date 2026-05-12 12:09 +0100
Message-ID <n6gg48Fr9r0U1@mid.individual.net> (permalink)
References <10tosgh$1o5j$1@nnrp.usenet.blueworldhosting.com>

Cross-posted to 3 groups.

Show all headers | View raw


On 10/05/2026 04:02, Maria Sophia wrote:
> 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

Help - I'm lost!

I can get as far as #3 and can get IP address, port and pairing code

But I don't understand #4 - Pair and connect
Where are the adb pair and adb connect commands entered - on the phone 
(if so where?) or on the PC (if so where). My PC doesn't seem to 
understand the command 'adb' when entered at a command prompt!

-- 
Cheers,
Roger

Back to comp.mobile.android | Previous | NextPrevious in thread | Find similar


Thread

PSA: How to mirror Android onto your PC using scrcpy & adb over Wi-Fi Maria Sophia <mariasophia@comprehension.com> - 2026-05-09 21:02 -0600
  Re: PSA: How to mirror Android onto your PC using scrcpy & adb over Wi-Fi Maria Sophia <mariasophia@comprehension.com> - 2026-05-10 20:01 -0600
    Re: PSA: How to mirror Android onto your PC using scrcpy & adb over Wi-Fi Maria Sophia <mariasophia@comprehension.com> - 2026-05-11 20:34 -0600
    Re: PSA: How to mirror Android onto your PC using scrcpy & adb over Wi-Fi "Kerr-Mudd, John" <admin@127.0.0.1> - 2026-05-12 13:00 +0100
  Re: PSA: How to mirror Android onto your PC using scrcpy & adb over Wi-Fi Roger Mills <mills37.fslife@gmail.com> - 2026-05-12 12:09 +0100

csiph-web