03 July 2026

How to project Android phone screen to your ubuntu computer?

How to project Android phone screen to your ubuntu computer?
 
The easiest and most reliable way to project and control your Android screen on Ubuntu is using Scrcpy. It requires enabling USB Debugging on your phone, connecting with a USB cable, and running a simple command.
1. Enable Developer Options on Android
  1. Open your phone's Settings, go to About Phone (or System), and tap the Build Number 7 times.
  2. Go back to the main Settings menu, open Developer Options, scroll down, and toggle USB Debugging to ON.
2. Install Scrcpy on Ubuntu
Open your Ubuntu terminal (Ctrl+Alt+T) and install Scrcpy and the Android Debug Bridge (ADB) tool using the default package manager:
bash
sudo apt update
sudo apt install scrcpy adb -y
Use code with caution.
3. Connect and Mirror
  1. Plug your Android phone into your Ubuntu PC using a USB cable.
  2. A prompt will appear on your phone asking to authorize the computer. Select Always allow from this computer and tap Allow.
  3. In your Ubuntu terminal, simply type:
bash
scrcpy
Use code with caution.
A window will instantly pop up showing your phone's screen. You can now control your phone using your computer's mouse and keyboard.
For a quick visual breakdown of the installation and device setup steps:
For a quick visual breakdown of the installation and device setup steps:
If you want to project wirelessly instead of using a USB cable, let me know, and I can give you the steps to switch ADB to TCP/IP mode.
  • How to screen mirror android phone to Ubuntu PC? [duplicate]
    scrcpy for Mirroring: scrcpy allows screen mirroring and device control of Android devices on Ubuntu via USB or TCP/IP. The Androi...
    Ask Ubuntu
  • Mirror Android Phone To Ubuntu Desktop Using scrcpy 2.4
    When connecting your phone to the computer, check the 'always allow from this computer' option and then tap 'allow'.
    Related video thumbnail
    3m
    YouTube·joezomby1
  • Mirror Android Screen To Ubuntu 22.04 Desktop
    When connecting the phone to the computer, a popup will appear; select "always allow USB debugging" and then "allow".
    Related video thumbnail
    2m
    YouTube·joezomby1
Show all
 
Yes, I want to project wirelessly instead of using a USB cable, please.
 
To project your Android screen wirelessly using Scrcpy, your phone and Ubuntu computer must be connected to the same Wi-Fi network. You will still need a USB cable for the initial setup every time your phone restarts.
1. Enable Wireless ADB Mode
  1. Connect your phone to your Ubuntu PC with a USB cable.
  2. Open your terminal and find your phone's IP address by running:
    bash
    adb shell ip route | awk '{print $9}'
    
    Use code with caution.
    (Note down the IP address shown, for example: 192.168.1.50)
  3. Set the ADB connection mode to TCP/IP over port 5555:
    bash
    adb tcpip 5555
    
    Use code with caution.
2. Disconnect and Run Wirelessly
  1. Unplug the USB cable from your phone.
  2. Connect your PC to your phone over Wi-Fi using the IP address from earlier:
    bash
    adb connect 192.168.1.50:5555
    
    Use code with caution.
    (Replace 192.168.1.50 with your phone's actual IP address)
  3. Start mirroring your screen:
    bash
    scrcpy -e
    
    Use code with caution.
Troubleshooting Tip
If the video lags or stutters over your Wi-Fi, you can lower the bitrate and resolution by launching Scrcpy with this command instead:
bash
scrcpy --bit-rate 2M --max-size 1024
Use code with caution.
If you encounter any connection errors or want to learn how to automatically connect next time without typing the IP address, let me know!
  • Do I have to plug in the usb cable to activate wireless connection every time? · Issue #4198 · Genymobile/scrcpy
    Jul 28, 2023 — You must connect an USB cable only once after each phone reboot (you can't keep the TCP/IP mode across reboots without a rooted de...
    GitHub
  • How to Tether Any Smartphone to Linux for Mobile Internet
    Sep 14, 2023 — The methods described here require you to connect the mobile device to your PC with a working USB cable before activating tetherin...
    MakeUseOf
  • Connecting to Android Devices Over Wi-Fi in Android Studio
    Nov 30, 2024 — This guide will walk you through the steps required to set up ADB over Wi-Fi. Step-by-Step Guide 1. Enable Wireless Debugging To b...
    Repeato
Show all
AI Mode response is ready


No comments:

Post a Comment