Sunshine and Moonlight - self-hosted game stream
In this article, I want to share my experience using Sunshine and Moonlight for streaming video from my PC over a local network. This has allowed me to play my favorite PC games on the home TV with very low latency.
In this article, I want to share my experience using Sunshine and Moonlight for streaming video from my PC over a local network. This has allowed me to play my favorite PC games on the home TV with very low latency.
Sunshine and Moonlight
Sunshine and Moonlight are two open-source software that allow you to stream video from your PC to a playback device, such as a TV or monitor. Sunshine is the software you install on your PC, while Moonlight is the software you install on the playback device.
Requirements
To use Sunshine and Moonlight, you will need:
- A PC with a graphics card compatible with OpenGL 4.1 or higher
- A playback device compatible with Moonlight
- A local network with good connection speed
Installation
The installation of Sunshine and Moonlight is relatively simple. To install Sunshine, follow the instructions on the project website. To install Moonlight, follow the instructions on the Moonlight website.
Configuration
Once installed, you will need to configure Sunshine and Moonlight. For configuring Sunshine, follow the instructions on the project website. For configuring Moonlight, follow the instructions on the Moonlight website.
Usage
Once configured, you can start streaming video from your PC to the playback device. To do this, launch Sunshine on your PC and Moonlight on the playback device.
Sunshine and Moonlight will use your local network to stream video from your PC to the playback device. The transmission latency will depend on the speed of your local network.
Conclusion
Sunshine and Moonlight are powerful tools that can help you play your favorite PC games on the home TV. With proper configuration, you can achieve very low latency, allowing you to play without issues.
My results
In my experience, I achieved a latency of about 4 milliseconds. This allowed me to play PC games without any problems, even with demanding titles like racing or first-person shooter games.
Tips
To get the best results, I recommend following these tips:
- Use an Ethernet cable to connect your PC to the router. This will provide you with a more stable connection and lower latency.
- Ensure that both your PC and playback device are on the same Wi-Fi network.
- If your playback device supports hardware encoding, use it to improve image quality and latency.