Skip to content

Instantly share code, notes, and snippets.

@daz
Created July 1, 2019 06:50
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daz/4176649c890ea71ce637d11fa979f043 to your computer and use it in GitHub Desktop.
Save daz/4176649c890ea71ce637d11fa979f043 to your computer and use it in GitHub Desktop.
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