Groups | Search | Server Info | Login | Register


Groups > comp.mobile.android > #153885

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

From Maria Sophia <mariasophia@comprehension.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 09:03 -0600
Organization BWH Usenet Archive (https://usenet.blueworldhosting.com)
Message-ID <10tvfgn$t8i$1@nnrp.usenet.blueworldhosting.com> (permalink)
References <10tosgh$1o5j$1@nnrp.usenet.blueworldhosting.com> <n6gg48Fr9r0U1@mid.individual.net>

Cross-posted to 3 groups.

Show all headers | View raw


Roger Mills wrote:
> 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!

Hi Roger,

Thanks for trying to connect your phone to your PC because it's wonderful 
to be able to completely control your phone over USB or Wi-Fi from a PC.

While I used adb since my first Android phone, I've been using scrcpy
mirroring since Android 8, so I forget that a simple setup is required
if someone is starting from scratch to PC mirror Android over Wi-Fi.

While adb has been on the PC since Android 1.0, the wireless debugging 
capability only started in Android 11, which means most of us cut our teeth 
on the simpler USB adb connections before graduating to the Wi-Fi method.

If you've never used adb before, my heartfelt suggestion is to first get 
used to adb (and screen copy) by tethering your phone by USB to your PC.
 a. My recommendation is first to get USB tethering to work
 b. Then, I recommend you get adb to work from the PC to the phone
 c. After that, I recommend you get screen copy to work on the PC

Those are trivial setup steps which you do once in the phone's lifetime.

The first thing you need to do is install the open source adb on your PC.
 *How to install ADB on Windows, macOS, and Linux*
 <https://www.xda-developers.com/install-adb-windows-macos-linux/>

Note that you do NOT need the entire Android Studio SDK toolkit (which 
contains the adb executable). You only need the very small adb directory.

Then, the connection steps are this simple:
 1. On the phone, turn developer options on & connect by USB to your PC
 2. On the PC, run "adb devices"
 3. That should report that the PC adb connected to your phone over USB

If the phone doesn't "talk" to the PC over USB, then do a bit of debugging.
 *Resolve USB connection issues*
 <https://developer.android.com/studio/run/device>

Once the phone is talking to the PC, it's time to turn Developer options 
on, on the phone, which is trivial and you do it once per phone lifetime.

Almost everyone I know turns Developer options on the instant they get 
a new Android device, but if you need instructions, here is a link.
 *Configure on-device developer options*
 <https://developer.android.com/studio/debug/dev-options>

While adb runs on Android (where it's called "local" adb, or ladb), the 
concept is to run adb on your PC (Linux/Mac/Windows) to work the phone.

Once you get used to running adb on the PC over USB to control your phone, 
then you're ready for the screen copy step, to mirror your phone on the PC.
  <https://github.com/Genymobile/scrcpy>

While screen copy is one of the greatest efficiency tools on the planet, 
there's so much to it that you'll want to practice mirroring for a while.

Luckily, scrcpy simply piggybacks off of the adb stuff you did above:
 1. Connect the phone by USB to the PC
 2. adb devices  (this establishes the adb connection)
 3. scrcpy (this mirrors the phone onto your PC)

It's that simple when you've gotten through the shallow learning curve.
At that point, you completely control the phone from the PC over USB.

Once you are comfortable mirroring the phone onto your PC, at that point
you are ready to cut the cord and run adb wirelessly over your LAN.
 *How to use wireless ADB on your Android phone or tablet*
 <https://www.androidpolice.com/use-wireless-adb-android-phone/>

The pairing, at that point, is just the simple steps I outlined prior:
 1. On the phone, get the pairing port & code & the connection port
 2. adb pair 192.168.1.2:40005 450824 (your port, code & IP will vary)
 3. adb connect 192.168.1.2:46003 (your port & IP will vary)
 
Here are the five-minute instructions for setting that up.
<https://www.reddit.com/r/androiddev/comments/163adkt/how_to_create_an_adb_completely_wirelessly_in_5/>

If you have issues, just ask as almost everyone I know who has Android
completely controls their phone from the PC using adb over USB or Wi-Fi.
-- 
The nice thing about Usenet are the good ideas from kind helpful people.

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 Maria Sophia <mariasophia@comprehension.com> - 2026-05-12 09:15 -0600
      Re: PSA: How to mirror Android onto your PC using scrcpy & adb over Wi-Fi Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-05-13 04:37 +0000
        Re: PSA: How to mirror Android onto your PC using scrcpy & adb over Wi-Fi Paul <nospam@needed.invalid> - 2026-05-13 05:08 -0400
  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
    Re: PSA: How to mirror Android onto your PC using scrcpy & adb over Wi-Fi Maria Sophia <mariasophia@comprehension.com> - 2026-05-12 09:03 -0600

csiph-web