Tutorials Unity

Screencasting Oculus VR to Computer with ADB

Android Debug Bridge (ADB) makes it easy to share your Oculus VR experiences with clients over the internet. This screencasting tool comes in handy when you want to show clients in a video call (like Zoom or Teams) what you are looking at through your Oculus headset. Here’s a link to a site that was super helpful to me when crafting this tutorial: EZ360

The below is a relatively advanced approach to casting. For a simple solution, one that I recommend highly, download Oculus Developer Hub and cast with ADB toggled on. Here’s a video tutorial explaining this easier casting tool.


Confirm Connection

Turn on your Oculus Headset & connect it to your PC via USB. Confirm that you have enabled developer mode on your Oculus device via the Oculus mobile app & allowed USB debugging on your headset.

EZ360 has made it super easy for us to screencast with their batch files included when you download the  adb folder from EZ360 here (See #1 under Connect Oculus). Make sure you put the files in C:\adb\adb, crucial!

Next, open a terminal/command prompt and type ‘cd C:\adb\adb’ + enter. Then ‘adb devices’ + enter. You should see the device listed in the results.

This magic happens with wifi. Find the local IP of your device and manually edit the ‘Connect to Wireless adb’ file in your directory to show the same IP. You can find your headset’s local IP by clicking into wifi, then into your network, and scroll down to show advanced network settings.

Connect Wireless

Locate & open your adb folder in your local directory. Double click on ‘Connect Wireless adb’ (with your headset still connected).

Wait for a message in Terminal saying: “You can now disconnect your device from your computer and run the ‘Cast to your PC.bat’ file.”

When you see it, disconnect the headset. Wait 5 seconds or so before moving to the next step.

Troubleshooting: If you get an error saying something like ‘failed to push/returned with a value of 1’ confirm your headset is connected to wifi and that the ‘Connect wireless adb’ file shows the same local IP as your device.

Cast to PC

Go back to the adb devices folder in your directory and locate “Cast to Your PC”. Double click on it and put on your headset to start casting!



Troubleshooting: If you stop casting and want to begin casting again later, you’ll encounter an error about “more than one device/emulator.” The trick is to restart your adb server. Do this with the following commands in order: ‘adb kill-server’ + enter, then ‘adb tcpip 5037’ + enter. Continue the process as seen above starting with ‘adb devices’.



I hope this information makes it easier for you to share your VR projects with clients, colleagues, and friends. Subscribe to my youtube channel for more tutorials on Unity and  VR.

You May Also be Interested In...