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.

Quick 2026 Answer

Game Streaming Server on a VPS: Moonlight and Sunshine Setup 2026 works best when you keep the stream simple and stable first. Pick one output resolution, one bitrate and one ingest server, then leave it running long enough to catch drops. For a 24/7 stream, boring settings are usually better than pushing the highest possible quality.

Stable Stream Checklist

  1. Use CBR bitrate so the platform sees a steady stream.
  2. Set keyframe interval to 2 seconds unless the platform asks for something else.
  3. Keep CPU usage below 80 percent during normal scenes.
  4. Test the stream for at least one hour before calling it ready.
  5. Keep a fallback video or playlist ready if the source fails.
  6. Watch YouTube, Twitch or Kick health warnings during the first day.

What Usually Breaks

Most stream problems come from network jitter, overloaded encoders, bad audio levels or file loops that stop after one pass. A VPS helps when the home connection is unstable, but it does not fix a bad OBS scene or a playlist with a broken file.

For 24/7 channels, also check disk space and logs. Small errors can repeat for days and fill storage. A simple restart schedule and a health check can prevent a quiet failure.

Where to Go Next

For plan choice and settings, use streaming VPS plans, YouTube Live encoder settings, streaming VPS network stability. The best supporting visual is a real OBS settings screenshot, a stream health screenshot and a small flow diagram from source to VPS to platform.

Real Test Routine

The safest way to test Game Streaming Server on a VPS: Moonlight and Sunshine Setup 2026 is to run the stream as if nobody is watching, then read the health data. Do not judge the setup after five minutes. Leave it running long enough for network changes, playlist loops, audio drift and platform warnings to appear.

Start with one scene, one audio source and one destination. Use a modest bitrate that your VPS or home connection can keep all day. After the test starts, check dropped frames in OBS, stream health inside YouTube or Twitch, CPU use on the server and disk space if files are looping from the VPS.

If the stream fails, fix the first clear warning instead of changing every setting. A bitrate warning points to upload or encoder limits. A keyframe warning points to OBS output settings. Audio clipping points to gain staging. Random disconnects usually need network checks, reconnect settings and a fallback process.

When to Use a Streaming VPS

Use a streaming VPS when your home connection, PC sleep settings or local power are the weak part. It is especially useful for 24/7 music, ambient channels, event restreaming and SRT or RTMP relays. Keep the source files organized, watch logs and keep a backup playlist ready.

Screenshot or Generated Image Target

A useful supporting image for this page should show the actual setting, console, panel or workflow being discussed. Avoid a generic stock image if possible. A simple generated diagram is fine when it explains the flow better than a screenshot.

  1. Capture the main settings screen or config file.
  2. Add one close crop of the important value.
  3. Add one result screenshot after the fix or setup is working.
  4. Keep private IPs, tokens, emails and customer names hidden.
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 →

Launch Your 24/7 Stream

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