Screen Sharing and Recording a Oculus Quest 2 with a Windows or Mac Computer

With the Oculus Quest 2 coming out recently and having a new better screen resolution, the previous command line options for Oculus Quest 1  screen sharing I blogged don’t quite work for a good sharing mechanism.

I have played around a little and have come up with some numbers that work quite well with scrcpy, follow the below details to install the packages needed and get up and running with screen sharing of the Oculus Quest 2.

Initial Install and Setup

  1. Enable developer mode on your Oculus Quest 2 (
  2. Plug the USB-C cable into your computer and the Quest, this also works with USB to USB-C
  3. If its your first time plugging into this computer you will need to accept the prompt within the device that allows you to access the device from the computer as per below and check the box to always allow if you want to skip this section in the future
  4. For Windows download and unzip the latest build of scrcpy from a direct link for the current version when writing this is here:
  5. For Mac the application is available in Homebrew. Install it using the following from a terminal window:
    brew install scrcpy
  6. You will also need adb. you can install this by running the following from a terminal window:
    brew cask install android-platform-tools

Sharing the Screen connected via cable

  1. Open a command prompt (cmd.exe) or and CD into the extracted folder from above
  2. Run the following command:
    scrcpy--crop 1632:1220:100:320 -m 1600 -b 25M

Sharing the Screen connected wirelessly

You will still need a cable to make an initial connection and start the client on the Quest and then you can disconnect and use wirelessly, use the following steps to connect wirelessly:

  1. Follow steps 1-4 above in the setup section
  2. Open a command prompt (cmd.exe) and CD into the extracted folder from above
  3. While the device is connected via a cable run the following to find out what your Quests IP address is in the src section:
    adb shell ip route dev wlan0  proto kernel  scope link  src
  4. Now run the following replacing the IP address below ( as yours:
    adb tcpip 5555
    adb connect
  5. Disconnect the cable from the PC and with the device disconnected run the command to connect to the device as below
scrcpy--crop 1632:1220:100:320 -m 1600 -b 25M

Sharing Window

If everything worked above a new window should appear showing the device screen, you can then maximize this for a better demo window.

Testing was done with variations of the scrcpy command but the above was found to be the best viewing size to enable a good demo.

Recording the screen

There is also a great way to capture the screen while mirroring, add the following command options to the end of the scrcpy command above to do this:

 --record file.mp4

To disable mirroring while recording:

 --no-display --record file.mp4


Connection Issues

If you get a blank window or are unable to connect when device is plugged in you should be able to run the following command from the same folder above:

PS C:\Users\alan\Downloads\scrcpy-win64-v1.10> .\adb.exe devices
List of devices attached
1PASH9AF839266 device

The device should show above rather than:

PS C:\Users\alan\Downloads\scrcpy-win64-v1.10> .\adb.exe devices
List of devices attached
1PASH9AF839266 unauthorized

If you get the latter then make sure you have enabled developer mode and authorized the device as per step 1-3 above.

Target Machine refused connection when in wireless

If you receive a message like the following: “cannot connect to No connection could be made because the target machine actively refused it. (10061)”

Reconnect the Quest to the computer and go from Step 3 in the wireless connection steps above, this is caused because the client on the quest stopped, normally as you reset the device.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.