Game Streaming Server on a VPS: Moonlight and Sunshine Setup 2026

Published on

Want to stream games from a cloud server to any device? We cover how to set up Sunshine on a VPS and stream with Moonlight for lag-free remote gaming in 2026.

Written by Jochem – Infrastructure Expert – 5-10 years experience in game server hosting, VPS infrastructure, and 24/7 streaming solutions. Read author bio →

Game Streaming Server on a VPS: Moonlight and Sunshine Setup 2026

Game Streaming Server VPS

Game streaming from a remote server has become increasingly practical in 2026. The two tools at the heart of this are Sunshine (the server-side software) and Moonlight (the client app). Together they let you run games on a powerful remote machine and stream the gameplay to virtually any device.

Here is how to set this up on a VPS.

What Is Moonlight Streaming

Moonlight is an open-source implementation of NVIDIA's GameStream protocol. It was originally designed to stream games from an NVIDIA GPU-equipped PC to other devices on the same network.

Over time, Moonlight evolved into a flexible client that works with Sunshine, removing the requirement for NVIDIA hardware and enabling cloud and VPS-based streaming setups.

What Is Sunshine Streaming

Sunshine is the open-source server component. You install it on your Windows or Linux machine (or VPS) and it broadcasts the desktop and game output to Moonlight clients. It supports both NVIDIA and AMD GPUs, as well as software encoding for cases where dedicated GPU hardware is not available.

Setting Up Sunshine on a VPS

For a cloud gaming setup, you need a VPS with a GPU or at minimum a VPS with good CPU-based software encoding support.

  1. Install Windows Server or a Linux desktop environment on your VPS
  2. Download Sunshine from the GitHub releases page
  3. Run the installer and complete the initial setup
  4. Access the Sunshine web interface at localhost:47990
  5. Add your games or applications to the Sunshine library
  6. Open the required ports: UDP 47998, 47999, 48000, 48010 and TCP 47984, 47989, 47990

Connecting with Moonlight

  1. Install the Moonlight app on your device (available for PC, Android, iOS, and TV)
  2. Enter your VPS IP address in the "Add Computer" field
  3. Accept the pairing PIN shown in the Sunshine web interface
  4. Select your game or desktop from the Moonlight library

Latency Expectations

For game streaming to be playable, round-trip latency needs to stay under 30ms ideally and under 50ms practically. This means the VPS location matters significantly. A VPS in a European Data Center works well for European players, and a North American VPS for North American players.

Space-Node VPS plans include server locations in the Netherlands and Canada, covering both European and North American latency needs well. Combined with a well-configured Sunshine instance, you can achieve genuinely playable cloud gaming from any device with an internet connection.

Jochem

About the Author

Jochem – Infrastructure Expert – Expert in game server hosting, VPS infrastructure, and 24/7 streaming solutions with 5-10 years experience.

Since 2023
500+ servers hosted
4.8/5 avg rating

I specialize in Minecraft, FiveM, Rust, and 24/7 streaming infrastructure, operating enterprise-grade AMD Ryzen 9 hardware in Netherlands datacenters.

View my full bio and credentials →

Start Streaming in Minutes

Join content creators worldwide who trust our streaming infrastructure. Setup is instant and support is always available.

Game Streaming Server on a VPS: Moonlight and Sunshine Setup 2026