Hello, I need to mirror my phone to pc but with fullscreen (on local network using the hotspot created by the phone), how ?
(I can test commercial software also as well)
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Mirroring your phone to a PC in fullscreen over a local network can be done using several methods, including both free and commercial software. Here’s a step-by-step guide to achieve this:
Using scrcpy (Free)
scrcpy is a free and open-source tool that allows you to display and control your Android device from your PC.
Requirements:
Android Device: Running Android 5.0 or higher.
USB Cable (initial setup) or Wi-Fi (for wireless mirroring after initial setup).
ADB (Android Debug Bridge): You can download it as part of the Android SDK Platform-Tools.
Steps:
Enable Developer Options and USB Debugging on your Android device:
Go to Settings > About phone.
Tap Build number seven times until you see a message saying you are now a developer.
You can download the latest release of scrcpy from its GitHub page.
Connect your Android device to your PC using a USB cable initially:
Open a command prompt or terminal in the folder where you extracted ADB and scrcpy.
Run the command:
sh
adb tcpip 5555
Disconnect the USB cable.
Find your phone's IP address:
On your Android device, go to Settings > Network & internet > Wi-Fi.
Tap on the connected network to view details, and you should see the IP address.
Connect your device wirelessly:
On your PC, run the command:
sh
adb connect <your_phone_ip_address>:5555
Start scrcpy in fullscreen:
Run the command:
sh
scrcpy --fullscreen
User
well I tried most of these (except) scrpy and all of them don't work because I'm using the phone's hotspot where I can't even obtain its ip !!???
Assistant
When using your phone's hotspot, obtaining the IP address of the phone itself can be tricky because the hotspot functionality typically assigns the phone a local IP address that isn't easily accessible from the connected devices. However, there are still ways to achieve wireless mirroring in this setup. Let’s try a different approach using scrcpy and some network tricks.
Using scrcpy with Phone Hotspot
Steps:
Enable Developer Options and USB Debugging on your Android device:
Go to Settings > About phone.
Tap Build number seven times until you see a message saying you are now a developer.
Download the latest release for your operating system (Windows, macOS, or Linux).
Extract scrcpy:
Extract the downloaded ZIP file to a folder. You can place it in the same folder as ADB, like C:\adb\scrcpy on Windows or ~/adb/scrcpy on macOS/Linux.
Step 4: Initial USB Connection
Connect Your Android Device to Your PC Using a USB Cable:
When prompted on your Android device, allow USB debugging.
Open a Command Prompt or Terminal:
Navigate to the folder where you extracted ADB. You can do this by typing in the command prompt or terminal.
User
is there a shortcut to switch between fullscreen and not in scrpy
Assistant
Yes, you can toggle fullscreen mode in scrcpy using a keyboard shortcut. By default, scrcpy does not have a built-in keyboard shortcut for toggling fullscreen, but you can set one up using a third-party tool like AutoHotkey on Windows.
Run the installer and follow the on-screen instructions to install AutoHotkey.
Step 2: Create an AutoHotkey Script
Create a New Script:
Right-click on your desktop or in a folder, select New > AutoHotkey Script.
Name the script something like Toggle_scrcpy_Fullscreen.ahk.
Edit the Script:
Right-click on the script file and select Edit Script.
Add the following code to the script:
ahk
; Toggle Fullscreen for scrcpy
F11:: ; Use F11 key to toggle fullscreen
IfWinExist, ahk_exe scrcpy.exe
{
WinGet, winState, MinMax, A
if (winState = -1) ; Minimized
{
WinRestore, A
WinMove, A,, 0, 0, A_ScreenWidth, A_ScreenHeight
}
else
{
WinRestore, A
WinMove, A,, 100, 100, 800, 600 ; Adjust these values as needed
}
}
return
Save and Run the Script:
Save the script and double-click it to run. You should see a small green H icon in your system tray, indicating that the script is running.
Step 3: Use the Shortcut
Now, whenever you are using scrcpy, you can press F11 to toggle between fullscreen and a smaller window. You can adjust the window size and position in the script if needed.
Alternative: Using scrcpy Command-Line Options
Using Vysor (Commercial with Free Trial, Wireless)
Vysor offers a free trial and has a Pro version for wireless mirroring.
Steps:
Download and Install Vysor:
Go to the Vysor website and download the installer for your PC.
Install Vysor on your PC.
Enable Developer Options and USB Debugging on your Android device:
Follow the same steps as mentioned above for scrcpy.
Set Up Wireless Display (Vysor Pro):
Open Vysor on your PC.
Follow the on-screen instructions to set up wireless mirroring. This usually involves a one-time USB connection to enable wireless mode.
Start Mirroring:
Once set up, Vysor should detect your device over Wi-Fi.
Click on your device in Vysor and select View.
To go fullscreen, you can maximize the Vysor window on your PC.
Using AirDroid (Free with Premium Options, Wireless)
AirDroid allows wireless mirroring with both free and premium features.
Download and install the AirDroid Desktop client from the AirDroid website on your PC.
Set Up AirDroid:
Open AirDroid on your phone and sign up/login.
Open AirDroid on your PC and sign in with the same account.
Mirror your Device:
On your PC, you should see your device listed. Click on it.
Go to the Screen Mirroring section.
Click Start Casting to mirror your device.
Fullscreen Mode:
Maximize the AirDroid window on your PC to achieve fullscreen.
By following these steps, you should be able to mirror your phone to your PC in fullscreen over your phone's hotspot network.
cd path_to_adb_folder
Run the Following Command to Enable TCP/IP Mode:
sh
adb tcpip 5555
Disconnect the USB Cable:
Your Android device is now ready for wireless connection.
Step 5: Find Your Phone’s IP Address
Use a Network Scanning Tool:
Download and install a network scanning tool like Fing or Angry IP Scanner on your PC.
Run the tool while connected to your phone’s hotspot.
Scan the network to find the IP address of your phone. It is usually something like 192.168.43.1 or similar.
Step 6: Connect Your Device Wirelessly
Run the Following Command to Connect Wirelessly (Replace <your_phone_ip_address> with the Actual IP Address):
sh
adb connect <your_phone_ip_address>:5555
Step 7: Start scrcpy in Fullscreen
Run scrcpy in Fullscreen Mode:
Navigate to the folder where you extracted scrcpy.
Run the following command:
sh
scrcpy --fullscreen
Troubleshooting Tips
If scrcpy doesn’t connect: Ensure your PC and Android device are on the same network (i.e., connected to the same Wi-Fi hotspot).
If you can’t find the IP address: Double-check your network scanning tool and ensure it’s running while connected to the hotspot.
By following these steps, you should be able to mirror your Android device to your PC in fullscreen over your phone's hotspot network using scrcpy.
If you prefer not to use AutoHotkey, you can manually switch between fullscreen and windowed mode by stopping and restarting scrcpy with the appropriate command-line option.
To start scrcpy in fullscreen:
sh
scrcpy --fullscreen
To start scrcpy in windowed mode:
sh
scrcpy
You can create batch files or shortcuts for these commands for easier switching.
Creating Batch Files for Easy Switching
Fullscreen Batch File
Create a New Text File:
Right-click on your desktop or in a folder, select New > Text Document.
Name the file scrcpy_fullscreen.bat.
Edit the Batch File:
Right-click on the file and select Edit.
Add the following line:
bat
scrcpy --fullscreen
Save the Batch File:
Save the file (it should now have a .bat extension).
Windowed Batch File
Create a New Text File:
Right-click on your desktop or in a folder, select New > Text Document.
Name the file scrcpy_windowed.bat.
Edit the Batch File:
Right-click on the file and select Edit.
Add the following line:
bat
scrcpy
Save the Batch File:
Save the file (it should now have a .bat extension).
Now you can double-click these batch files to start scrcpy in fullscreen or windowed mode respectively.