managing twingate

Duo Multi-User Remote Game Streaming with Twingate

Enable multiple users to game simultaneously on one PC with Duo and Twingate Zero Trust network access.

Duo Remote Streaming Quick Start

Goal: Get multi-user remote game streaming over Twingate in under 30 minutes

What You’ll Need:

  • Windows 11 (23H2 or newer) PC with gaming GPU
  • Twingate account (sign up free)
  • Remote device(s) to stream to
  • Optional: Patreon support for unlimited users & 60+ fps ($10 lifetime)

Why Duo: Multiple people can game simultaneously on one PC — perfect for families!


Overview

Duo is a multi-user game streaming platform that allows multiple people to play different games simultaneously on the same gaming PC. Each user gets their own virtual Windows session with dedicated resources, enabling true concurrent gaming.

This guide shows you how to set up Duo on your gaming PC with Twingate for secure remote access, so your family members can game from anywhere without port forwarding or network exposure. Why Twingate? Traditional game streaming requires opening ports on your router (security risk) or complex VPN setups. Twingate provides Zero Trust access—your gaming PC stays completely private while family members stream securely from anywhere.

Architecture

[Remote Device]
↓ (Twingate Client)
[Twingate Cloud]
[Twingate Connector on Gaming PC]
[Duo Service]

How it works: The Twingate Connector on your gaming PC creates a secure outbound connection to Twingate Cloud. When family members stream remotely, their clients connect through this encrypted tunnel—no inbound ports, no port forwarding, no exposed services.


Step 1: Install Duo (5 minutes)

Download and Install

  • Download the installer:

  • Install as Administrator:

    • Right-click the installer → Run as Administrator
    • Accept the license agreement
    • Select all components during installation
    • Complete the installation wizard

Reboot Your PC

Restart your computer to initialize all system-level components.

Verify Installation

  • After reboot, check the system tray for the Duo icon
  • Open the Duo web UI: http://localhost:47990
  • Create an admin username and password when prompted

Initial Configuration

  • In the Duo web UI, navigate to Settings
  • Under Encoder, select your GPU:
    • Nvidia GPU → NVENC
    • AMD GPU → AMF
    • Intel GPU → QuickSync
  • Save your settings

Step 2: Create Virtual Session (5 minutes)

Create Windows User Account

Each virtual session requires a Windows user account. Open PowerShell as Administrator and run:

net user "RemoteUser" "StrongPassword123!" /add
net localgroup "Users" "RemoteUser" /add

Create Virtual Session in Duo

  • In the Duo web UI, navigate to Sessions Management
  • Click Add New Virtual Session
  • Configure the session:
    • Session Name: Remote Gaming (or any descriptive name)
    • Assigned User: RemoteUser (the account you just created)
    • Resolution: Auto (will match client)
    • Refresh Rate:
      • Free tier: 30Hz
      • Patreon tier: 60Hz+ (requires activation)
  • Click Create

Start the Session

  • In Sessions Management, find your new “Remote Gaming” session
  • Click Start to launch the virtual session
  • Verify the status shows as “Running”

Step 3: Setup Twingate Connector (10 minutes)

Select or Create a Remote Network

  • Log in to the Twingate Admin Console
  • Navigate to Remote Networks
  • Either select an existing Remote Network or create a new one:
    • Click Add Remote Network
    • Select a location that best describes your deployment
    • Give it a descriptive name (e.g., “Home Network”)
    • Click Add Remote Network

Add or Select a Connector

  • From your Remote Network page, go to the Connectors tab
  • Either:
    • Select an existing unconfigured Connector, or
    • Click Add Connector to create a new one

Deploy Connector on Your Gaming PC

We recommend deploying the Connector using WSL for Windows systems. Why WSL? It runs natively on Windows with minimal resource overhead and doesn’t require Docker Desktop’s additional background services and VM layer.

  • Install WSL (if not already installed):

    wsl --install
  • Install Ubuntu from the Microsoft Store:

  • Deploy the Connector:

    • In your Connector’s configuration page, select Linux deployment method
    • Generate tokens
    • Copy the installation command with your unique tokens
    • Run the command in your WSL Ubuntu terminal
  • Verify the Connector is online:

    • Return to your Remote Network’s Connectors tab
    • Status should show green “Online”
Option B: Docker Deployment
  • Install Docker Desktop for Windows

  • Follow the Docker Connector installation guide (Docker Section)

    • In your Connector’s configuration page, select Docker deployment method
    • Generate tokens
    • Copy the installation command with your unique tokens
    • Run the command
  • Use the tokens provided in the Admin Console


Step 4: Add Duo as a Twingate Resource (5 minutes)

Find Your PC’s IP Address

Open Command Prompt or PowerShell and run:

ipconfig

Look for your IPv4 Address under your active network adapter (typically starts with 192.168. or 10.).

Create the Resource

  • In Twingate Admin Console, navigate to ResourcesAdd Resource

  • Configure the resource:

    • Name: Duo Gaming PC
    • Address: Your PC’s private IP (e.g., 192.168.1.100)
    • Protocols:
      • TCP ports: 47984-47990 (Web UI + HTTPS)
      • UDP ports: 47998-48010 (Streaming - wider range for multiple sessions)
    • Click Add Resource

Assign Access to the Resource

  • Navigate to the Resources tab in the Admin Console
  • Find and click on your Duo Gaming PC resource
  • Go to the Access section
  • Click Add Access and select the group that you want to give access
  • Save the changes

Step 5: Install Twingate Client (3 minutes)

Install the Twingate Client on each remote device (all devices that will stream games):

Downloads

  • Windows/Mac: twingate.com/download
  • iOS: App Store → Search “Twingate”
  • Android: Play Store → Search “Twingate”

Sign In and Connect

  • Open the Twingate Client application
  • Sign in with your Twingate account
  • Click Connect to establish the secure connection
  • Verify your “Duo Gaming PC” resource appears in the resources list

Step 6: Install Moonlight Client (3 minutes)

Moonlight is the streaming client that connects to Duo. Install it on each remote device:

Downloads (All Platforms)

  • Windows/Mac/Linux: Moonlight Releases
    • Find the latest release and download the appropriate installer for your OS
  • iOS: App Store → “Moonlight Game Streaming”
  • Android: Play Store → “Moonlight Game Streaming”

Step 7: Pair and Start Gaming (5 minutes)

Connect to Your Gaming PC

  • Ensure Twingate Client is connected on your remote device
  • In Moonlight, click the ”+” button or “Add PC”
  • Enter your gaming PC’s private IP address (e.g., 192.168.1.100)
  • Moonlight will automatically discover your Duo server

Complete Pairing

  • Moonlight will display a 4-digit PIN code
  • On your gaming PC, open the Duo web UI: http://localhost:47990
  • Navigate to the PIN section in the menu
  • Enter the PIN from Moonlight
  • Click Pair

Select Your Virtual Session

  • In Moonlight, you’ll see multiple entries including your session names
  • Look for “Remote Gaming” (or whatever you named your virtual session)
  • Click on your session to connect
  • You’re now gaming remotely in your own virtual session! 🎮

Multi-User Setup (Bonus)

Want multiple family members to game simultaneously on the same PC?

Unlock Full Multi-User Features

  • Support Duo on Patreon:

    • One-time $10+ pledge at patreon.com/blackseraph
    • Unlocks unlimited simultaneous sessions
    • Enables 60+ fps streaming
    • Lifetime access (no subscription)
  • Link Your Patreon Account:

    • In Duo web UI → SettingsPatreon
    • Follow the authentication flow to link your account
    • Your features will be unlocked immediately

Create Additional User Sessions

For each additional family member:

  • Create Windows user account (Step 2):

    net user "FamilyMember2" "AnotherStrongPass!" /add
    net localgroup "Users" "FamilyMember2" /add
  • Create virtual session in Duo (Step 2)

  • Pair their device with Moonlight (Step 7)

Simultaneous Gaming Example

With Patreon support, your family can all game at once:

  • User 1: Playing Elden Ring at 4K60
  • User 2: Playing Fortnite at 1080p60
  • User 3: Playing indie games or browsing

All on the same PC, all at the same time!


Troubleshooting

Can’t Connect to Gaming PC in Moonlight

  • Verify Twingate Client shows “Connected” status
  • Confirm the Resource shows as available in Twingate Client
  • Try using 127.0.0.1 instead of your private IP address
  • Check that Duo service is running:
    sc query DuoService

Pairing Fails

  • Ensure you’re entering the PIN in Duo web UI while connected via Twingate
  • Verify Duo service is running
  • Try restarting Duo from the system tray icon
  • Check that the Twingate Connector is online

Virtual Session Won’t Start

  • Verify TermWrap service is running:
    sc query TermWrap
  • Check Windows Remote Desktop is enabled:
    • Settings → System → Remote Desktop → Enable
  • Verify user account exists and is active:
    • Computer Management → Local Users and Groups → Users

Stuck at 30Hz/30fps

This is expected behavior on the free tier. To unlock 60+ fps:

  • Support Duo on Patreon ($10 lifetime)
  • Link your Patreon account in Duo settings
  • Restart sessions for changes to take effect

Poor Performance with Multiple Users

  • Check system resources: Task Manager → Performance
  • Per-session recommendations:
    • RAM: 4-8GB per active session
    • CPU: 2-4 cores per active session
    • GPU: Shared, but ensure not at 100%
  • Reduce session count if hardware is maxed out
  • Lower bitrate in Moonlight settings for each user
  • Consider quality vs. quantity: Fewer sessions at higher quality may be better

Games Crash or Won’t Launch

  • Verify sufficient RAM available for the session
  • Check game compatibility with virtual sessions
  • Some anti-cheat systems may not work in virtual sessions
  • Run games in windowed mode if fullscreen causes issues

Resource Planning

To determine how many concurrent sessions your PC can handle:

Minimum Per Session

  • RAM: 4GB (8GB recommended)
  • CPU: 2 cores (4 cores recommended)
  • GPU: Shared encoding capacity

Example Calculations

16GB RAM, 8-core CPU, RTX 3070:

  • Conservative: 2-3 simultaneous gaming sessions
  • Optimized: 3-4 sessions with mixed workloads

32GB RAM, 12-core CPU, RTX 4080:

  • Conservative: 4-5 simultaneous gaming sessions
  • Optimized: 5-6 sessions with mixed workloads

Next Steps

Optimize Your Setup

  • Configure individual session resolution and quality settings
  • Set up separate Steam libraries per user
  • Install games accessible to all user accounts
  • Configure audio routing for multiple sessions

Advanced Features

  • HDR streaming (Patreon tier only)
  • Custom refresh rates per session
  • Multi-monitor virtual displays per user
  • Resource limits per session in Duo settings

Security Enhancements

  • Use unique, strong passwords for each Windows user
  • Configure Windows user permissions appropriately
  • Set up MFA in Twingate for additional security
  • Regularly review Duo access logs


For comprehensive Duo documentation and community support, visit the Duo GitHub repository and Patreon page.

Last updated 16 days ago