20. Remote Access
Setup Admin
- Create a Cloudflare Tunnel and give it a public hostname on your own domain (for example
media.example.com). Set its Service URL tohttp://shieldcinema:8080: that is not a web address, it’s the name of the ShieldCinema container inside Docker, and it’s the same for everyone. - In
.env, setCLOUDFLARE_TUNNEL_TOKENto the tunnel’s token andREMOTE_URLto your hostname (e.g.https://media.example.com), adddocker-compose.cloudflare.ymltoCOMPOSE_FILE, and rundocker compose up -d(the Install Guide’s remote-access chapter walks through it). Already running cloudflared on the host instead? Route it tohttp://localhost:8080. - On a Shield, set Settings → Connection → Remote URL to that address (it must start with
https://). The address is saved on the server, so every device can use it. - Make sure remote access is allowed: web app → Settings → Server settings → Allow remote access (outside the home network) (on by default). When it’s off, everything from outside your home is refused with “Remote access is currently disabled”.
With Connection Mode on Auto, a Shield uses the home address when it answers and the remote address when it doesn’t, re-checking every 30 seconds. The badge at the top right of every page shows LOCAL or REMOTE and the response time.
How local vs. remote is detected
ShieldCinema decides whether a connection is local or remote by looking for the CF-Ray header that Cloudflare stamps on every request that passes through its network:
- On your home network, the app reaches the server directly. There’s no Cloudflare in the path and no
CF-Rayheader, so the connection is treated as local (full-quality Direct Play). - Away from home, traffic flows through your Cloudflare Tunnel, which adds
CF-Ray. The connection is treated as remote, which turns on the streaming-quality cap and device approval.
The server makes this decision from the CF-Ray and X-Forwarded-For headers and the address the connection actually comes from, so a device reaching an opened port directly is treated as away from home too. The Shield shows LOCAL or REMOTE by which of its two addresses it is using. Still, use a tunnel or VPN rather than opening a port on your router: the tunnel adds HTTPS and keeps the server itself off the internet.
Remote Sign-In
A profile needs a PIN to be used away from home. An admin sets one at home first (Settings → Users & Security → Manage Users → Edit).
A Shield set up at home keeps working when it’s away: it uses the sign-in it already has, stored encrypted on the device. You’re only asked for the PIN again if that sign-in is revoked.
A Shield set up away from home (at a friend’s house, say, connecting to the server’s https:// address) doesn’t see the server’s profiles: the server never lists them to the internet. Instead of Who’s watching? it shows Sign in:
- Type your profile’s display name (capitals don’t matter). If the server’s owner gave you an Invite code, type it in the second box: it approves this Shield straight away.
- Select Next, then enter your PIN on the number pad.
- A new Shield then shows Waiting for approval with its pairing number until an admin approves it (see Device Approval below), and opens by itself once approved.
- The Shield remembers you: next time Who’s watching? lists your profile (and anyone else who signed in on this Shield). Pick it to go straight in. Not you? Sign in as someone else brings back Sign in.
If it doesn’t work you’ll see Wrong profile name or PIN., That invite code is wrong or has expired., This profile has no PIN yet. Set one on a Shield at home, then try again. or Account locked. Try again later. Change server on the Sign in screen opens your list of servers.
Five wrong PINs lock the profile for 15 minutes.
Device Approval (remote sign-ins)
A new device that signs in from outside your home network can’t see anything until an admin approves it. This is controlled by Require device approval for remote sign-ins (web app → Settings → Server settings, or /admin → Devices), which is on by default.
On the new device:
- It shows Waiting for approval: “Ask the server’s owner to approve this Shield: web app → You → Devices.” with its pairing number (check it matches when approving), and a Sign out button. (The web app says “Confirm this number matches when you approve.”)
- It checks every 3 seconds and opens the app as soon as it’s approved. If it’s denied or blocked, it goes back to sign-in with This Shield wasn’t approved.
- If the device is denied or blocked, it’s signed out.
- In the web app you can also use I have a recovery code, or Sign out.
For the admin:
- Approve it in the web app → You → Devices, on a Shield in Settings → Users & Security → Devices, or on the server’s
/admin→ Devices page (home network only), checking that the pairing number matches. Approving takes effect right away. Admins see a count of waiting devices on You and Devices, and a banner on Home. - Each waiting device shows its name, the profile it signed in as, its system and its approximate location (looked up on the server from its address; nothing is sent anywhere). Approve (asks you to confirm the pairing number) or Deny.
Other ways in:
- Devices at home are trusted automatically. A Shield or browser that first signed in away from home is approved the moment it’s used on your home network. The simplest way to set up a new device is to sign it in once at home. A guest’s device is the exception: an admin always approves it.
- Invite codes (Generate invite code) let someone set up a new device away from home: they enter the one-time code when signing in and are approved without waiting. Codes last 24 hours and are shown only once.
- Recovery codes (Generate recovery codes) are five one-time codes, good for a year, to keep in a password manager. If you’re away from home on a browser the server has never seen, entering one at sign-in approves that browser immediately. They’re shown once; Generate a new set makes five more, and earlier codes keep working until used or expired.
- New-device alerts: admins can turn on notifications in the web app (Devices → Enable notifications) to be alerted when a device is waiting. Send test alert checks that alerts arrive.
- An approved browser stays approved for over a year, even if you sign out.
- Approval is per profile. Away from home, an approved device that signs in as a different profile waits for approval again, so knowing someone else’s PIN isn’t enough to get into their profile. At home (or with an admin’s Sign in as) switching profiles needs no approval.
Device Management Admin
The full device list, with the same actions, is in three places:
- Web app → You → Devices (from anywhere): Waiting for approval, then Allowed and Blocked, plus Show signed-out devices. Each device shows its name, profile, system (browsers are named like Chrome on Windows) and app version, and Last seen 3 h ago · Springfield, United States. Buttons: Rename, Sign out and Block for allowed devices, Unblock for blocked ones, Block for signed-out ones.
- Shield → Settings → Users & Security → Devices (from anywhere): the same groups; select a device for its details and actions (section 19).
/admin→ Devices (home network only), described below.
On the /admin page:
- Remote device trust: shows whether approval is required, with a button to turn it on or off. Turning it off lets any remote device in after a correct PIN.
- Invite codes: generate a code, and see existing codes with when they were created and expire, whether they’ve been used, and Delete.
- Device list: each device’s name, system and app version; its profile; its status (trusted, pending, blocked or revoked); and when and where it was last seen.
- A waiting device has Approve and Deny (Deny signs it out; it can try again).
- Other devices have Revoke (it must sign in again).
- Block shuts a device out until it’s unblocked; a blocked device has Unblock, which lets it straight back in.
- Security log (
/admin→ Security log): the latest 300 sign-in events, such as wrong PINs, lockouts, approvals, blocks and invite codes used. Problems are shown in red and successes in green.
Remote Streaming Quality
Away from home you can cap how much data a video uses. The server converts the video on the fly when it’s over the cap, using the graphics card when one is available.
On the Shield — Settings → Playback → Remote Streaming Quality (set per Shield):
| Option | Use it for |
|---|---|
| Original (Direct Play) | Full quality; needs a fast connection (default) |
| 20 Mbps (High) | Near-lossless for most content |
| 8 Mbps (Medium) | Good quality, less data |
| 4 Mbps (Low) | Moderate quality |
| 2 Mbps (Minimum) | Slow connections |
At home, the Shield always plays at full quality. If a file is already under the cap, it still plays directly.
In the web app — Settings → Streaming quality: Original (no limit), High (~8 Mbps) (default), Medium (~4 Mbps), Low (~2 Mbps) and Data saver (~1 Mbps). Unlike the Shield’s setting, it applies at home too. See section 23.