---
title: "Set up PlugVR: connect it to your Stash server"
description: "Connect PlugVR to your Stash server. Type the server's address and API key on Quest 2, 3 or 3S, or scan a setup QR code on Quest 3 or 3S."
url: https://plugvr.app/setup
---

# Set up PlugVR

PlugVR needs your Stash server's address and its API key, if it has one. Type them on any supported headset, or scan a setup QR code on Meta Quest 3 or 3S.

## What you need

- A Meta Quest 2, Meta Quest 3 or Meta Quest 3S with PlugVR installed.
- A [Stash](https://stashapp.cc/) server, version 0.26 or newer, running on a computer or NAS. If you're new to the server, see [where to get the Stash app](https://plugvr.app/stash-app-on-quest#server).
- The headset and the server on the same home network.

## 1. Find the server's address and API key

**The address** is what you type into a browser to open Stash from another device on your network. Stash listens on port 9999 unless you changed it:

```
http://192.168.1.20:9999
```

Without `http://` or `https://` in front, PlugVR tries `https://` first, then `http://`.

An address that only works on the server itself, such as `http://localhost:9999`, won't work from the headset. Use the computer's network address or its name on your network.

**The API key** is in Stash's web interface under **Settings → Security**. If the field is empty, generate one there. If your Stash has no username and password, it needs no API key: leave it out.

## 2. Scan a QR code

On Meta Quest 2, [type your server details](https://plugvr.app/setup#type). On Quest 3 or 3S, make a setup QR code here, get one from our Stash plugin, or make one with any QR generator.

### With our QR code maker

Select **Make QR code** and type the server's address and API key from step 1: the code appears as you type. The short address [plugvr.app/qr](https://plugvr.app/qr) opens it directly.

It is made in your browser. Nothing you type is sent anywhere or saved, and the site's security policy blocks this page's scripts from connecting anywhere. It needs JavaScript; without it, use one of the ways below.

### With our Stash plugin

[Pair QR](https://github.com/plugvr-studio/stash-plugins), our free plugin for Stash, adds a **Show QR code** button next to the API key in **Settings → Security**. Its code holds the server's address, a name and, when Stash has a username and password, its API key. Without a password, the code holds no key and works on the same network as Stash. It needs Stash 0.27 or newer.

1. In Stash, open **Settings → Plugins**.
2. Under **Available Plugins**, select **Add source**. Enter the name `PlugVR`, the local path `plugvr` and this source URL: `https://plugvr-studio.github.io/stash-plugins/main/index.yml`
3. Open the **PlugVR** source, select **Pair QR**, then **Install**.
4. Open Stash at its network address from step 1, not at `localhost`: the code holds the address your browser has open. In **Settings → Security**, select **Show QR code**.

### Or make one yourself

Make a QR code on your phone or PC with any QR generator. It holds this text, with your own address and key:

```json
{
  "url": "http://192.168.1.20:9999",
  "apiKey": "YOUR-API-KEY",
  "name": "Home"
}
```

| Field | Needed | What it is |
| --- | --- | --- |
| `url` | Yes | The server's address, as in step 1. |
| `apiKey` | Only if Stash has a password | The API key from Stash. |
| `name` | No | What the app calls this server. Without it, the server is called by its host name or IP address. |

The code holds your API key, so prefer a generator that runs on your own device, and don't share a picture of the code.

### Scan it in the headset

1. Open PlugVR. On the **Connect to Stash** screen, select **Scan QR code**.
2. Select **Allow camera**, then **Allow** in each prompt. There can be two: one for the camera and one for the headset's cameras. The camera is used only to read this code.
3. Show the code on your phone or monitor and hold it 30 to 50 cm in front of the headset, a little below the panel. It is read by itself.
4. The app connects and your library opens.

## Type your server details

1. On the **Connect to Stash** screen, under **Or enter it yourself**, select **Server address** and type the address on the keyboard that appears.
2. Type the **API key**, or leave it empty if Stash has no password. The key shows as dots.
3. Optionally give the server a **Name**.
4. Select **Connect**.

**Without leaving the headset:** open Stash in the headset's browser, copy the API key from Settings → Security, go back to PlugVR and select **Paste** on its keyboard.

## 3. Watch

Your Stash library opens on Home. Pick a scene to watch, or explore [everything you can browse and do](https://plugvr.app/#features). PlugVR detects the video format and lets you correct it from the player bar.

## More than one server

The headset can keep several servers. Add, switch, edit and remove them in **Settings → Stash → Servers**. Each one keeps its own saved filters, bookmarks and colour theme. Removing a server erases what the headset kept for it and touches nothing in Stash.

## It doesn't connect

See [Can't reach the server](https://plugvr.app/support#cant-reach-server) on the support page, or write to [info@plugvr.app](mailto:info@plugvr.app).

---

This is the Markdown version of <https://plugvr.app/setup>. Every page of the site: <https://plugvr.app/llms.txt>
