Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can scrcpy work wirelessly with a different network? #5794

Open
Wewman1234 opened this issue Jan 25, 2025 · 1 comment
Open

Can scrcpy work wirelessly with a different network? #5794

Wewman1234 opened this issue Jan 25, 2025 · 1 comment

Comments

@Wewman1234
Copy link

Hello everyone

Is it possible for scrcpy to work wirelessly on a different network without rooting my device?
I heard that i can use something called an SSH Tunnel but i think that needs rooting for it to work

Thanks.

@Tofiasco
Copy link

Tofiasco commented Feb 2, 2025

Hi,

Yes, this is possible. What you're looking is an OpenVPN connection, (a lot of routers nowadays supports this functionality) you might consider taking a look into your router configurations. See below for my instructions setting up,

Here’s a step-by-step workflow for setting up a remote phone mirroring system using OpenVPN:

Step 1: Check Your Router for OpenVPN Support
-Check if your router supports OpenVPN (many modern routers do).
-If OpenVPN is supported, enable it in your router settings.
-If your router doesn't support OpenVPN, proceed to Step 2.

Step 2: Set Up an OpenVPN Server
-If your router doesn't support OpenVPN, set up an OpenVPN server on a dedicated device (e.g., Raspberry Pi, PC, or cloud server).
-Follow OpenVPN's installation instructions for the chosen device.

Step 3: Install OpenVPN Client on the Remote Device
-On your main phone or desktop (the device you’ll use to access the home phone), install the OpenVPN client.
-Configure the client with the OpenVPN connection settings from your home network (or server you set up in Step 2).

Step 4: Establish the OpenVPN Tunnel
-Connect your OpenVPN client to your home network. This will make it appear as if the remote device is on the same local network as the home network.

Step 5: Use scrcpy to Mirror the Phone
-On the remote device, use scrcpy (a tool for mirroring Android screens).
-Connect to the local IP address of the phone you want to mirror, now that you're on the same network via the OpenVPN tunnel.

Please let me know, if this is what you meant? Also please let me know if you need assistance setting up.

Cheers,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants