Skip to content

Instantly share code, notes, and snippets.

@daz
Created Jul 1, 2019
Embed
What would you like to do?
Cast Oculus Quest to Mac over wifi
#!/bin/sh
echo
echo "Connect Quest and hit <return> to continue..."
read Z
echo
QUEST_IP=`adb shell ip route | grep 'proto kernel' | awk '{print \$9}'`
adb tcpip 5555
echo
echo "Disconnect Quest and hit <return> to continue..."
read Z
echo
adb connect $QUEST_IP:5555
scrcpy -c1280:720:100:400 -b4M -m720
adb disconnect
adb kill-server
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment