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

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.
- Install Windows Server or a Linux desktop environment on your VPS
- Download Sunshine from the GitHub releases page
- Run the installer and complete the initial setup
- Access the Sunshine web interface at
localhost:47990 - Add your games or applications to the Sunshine library
- Open the required ports: UDP 47998, 47999, 48000, 48010 and TCP 47984, 47989, 47990
Connecting with Moonlight
- Install the Moonlight app on your device (available for PC, Android, iOS, and TV)
- Enter your VPS IP address in the "Add Computer" field
- Accept the pairing PIN shown in the Sunshine web interface
- 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
- Use CBR bitrate so the platform sees a steady stream.
- Set keyframe interval to 2 seconds unless the platform asks for something else.
- Keep CPU usage below 80 percent during normal scenes.
- Test the stream for at least one hour before calling it ready.
- Keep a fallback video or playlist ready if the source fails.
- 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.
- Capture the main settings screen or config file.
- Add one close crop of the important value.
- Add one result screenshot after the fix or setup is working.
- Keep private IPs, tokens, emails and customer names hidden.
