Urgent.News

What's breaking now, across thousands of outlets.

Tech

Mirroring an Android Phone to a Mac

Sometimes you want to see and control your Android phone's screen right on your Mac, wirelessly. Here's the whole setup in a few steps. What you need adb and scrcpy installed ( brew install android-platform-tools scrcpy on Mac) Developer Options + USB debugging enabled on the phone Phone and Mac on the same Wi-Fi network Connect over Wi-Fi Plug the phone in via USB once, then switch adb to…

Mirroring an Android phone's screen on a Mac is a straightforward process that involves a few simple steps. First, ensure you have both ADB (Android Debug Bridge) and scrcpy installed on your Mac. These can be installed using Homebrew by running `brew install android-platform-tools scrcpy`. Next, enable Developer Options and USB debugging on the Android phone. Both the Android device and the Mac should be connected to the same Wi-Fi network for a seamless connection.

To begin the mirroring process, connect the phone via USB once to trigger the wireless mode in ADB. This is done by executing `adb tcpip 5555` on the Mac. After this, find the phone's IP address by going to Settings > About phone > Status, or by using the command `adb shell ip addr` on the Mac. Once you have the IP address, connect to the phone using `adb connect [phone-ip]:5555`. Confirm the connection by running `adb devices -l`.

In case the `adb connect` command times out, it's usually due to an outdated or incorrect IP address. This often happens when the phone switches Wi-Fi networks or gets a new DHCP lease. In such cases, recheck the IP address on the phone and retry the connection.

Once the connection is confirmed, launch scrcpy by running `scrcpy -s [phone-ip]:5555`. A window will pop up, displaying the phone's screen in real-time. You can now control the Android phone using your Mac's mouse and keyboard. To prevent the phone's screen from locking during the session, add the flags `-w --screen-off-timeout=3600` when running scrcpy.

This keeps the device awake while scrcpy runs and extends the phone's screen timeout to one hour for the session. This setup allows for a seamless and efficient mirroring experience between your Android phone and Mac.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Announcing NgRx Traits 22

Hey everyone! We're excited to announce NgRx Traits version 22, fully compatible with Angular 22 and NgRx Signals 22! Along with the version bump, this release brings the biggest new feature the…

More from Wednesday 7 October →