1. Start VS Code Server
Open your project and click "Go Live" in the bottom right corner.
How to host your local VS Code project to external devices (Meta Quest, Mobile) using HTTPS.
We use Homebrew to install tools on Mac. If you don't have it, paste this into Terminal:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Once Homebrew is ready, run this command:
brew install ngrok
On Windows 10/11, we can use the built-in Terminal (PowerShell) and Winget.
Search for "Terminal" or "PowerShell" in your Start Menu and open it.
Paste this command into PowerShell:
winget install Ngrok.Ngrok
Note: If prompted, press 'Y' to agree to terms.
Ngrok requires a free account to work.
ngrok config add-authtoken YOUR_TOKEN_HERE
Do this every time you want to test on the headset.
Open your project and click "Go Live" in the bottom right corner.
Look at the bottom right. Usually 5500, but check!
Open Terminal/PowerShell and run:
ngrok http 5500
Copy the line ending in .ngrok-free.app.
⚠️ VR Mode ONLY works with the HTTPS link.
Click inside the Terminal window and press Ctrl + C.
Click the "Port: 5500" button in VS Code to turn it off.
You missed Step 1C. You must run the `config add-authtoken` command with your unique key from the website.
You are likely using `http://`. You MUST use `https://`.
Try restarting your PowerShell window after installing. If that fails, try installing via the ZIP download on the ngrok website.