- Implementation of a local streaming ecosystem by combining a sending server and a receiving client.
- Advanced operating system and network optimization to eliminate input lag and FPS drops.
- Configure remote access via VPN or open ports to play from anywhere in the world.

How to install and configure Sunshine to stream games from Windows? Imagine being able to play a few rounds of your most demanding PC games lying on the living room sofa or even from another city, but with a fluidity almost identical to playing delante del monitor. Gracias a herramientas de código abierto como Sunshine y Moonlight, esto ya no es ciencia ficción, sino una realidad accesible para cualquiera que tenga un ordenador decente y una conexión estable.
Aunque existen opciones más sencillas, este combo es el rey absoluto porque minimize latency as much as possibleallowing us to play competitive titles without experiencing that annoying input lag. Basically, we're talking about setting up our own cloud gaming service, but without relying on external servers and taking advantage of the raw power of our own graphics card.
Understanding the ecosystem: Sunshine, Moonlight and their variants

For all of this to work, we need two fundamental pieces. On one hand we have Sunshine, which acts as the serverIt's the program we install on the powerful PC to capture images and sound and send them over the network. On the other hand, there's Moonlight, which is the client; la aplicación que instalamos en el dispositivo donde queremos jugar (ya sea una Android TV, un iPhone, una Steam Deck o incluso otro portátil).
Si buscas algo más avanzado, existen forks como Apollo and ArtemisThe great advantage of Apollo is that it creates a virtual monitor on the receiving deviceThis allows you to turn off the host PC's screens to save energy and resources, thus avoiding the hassle of having to manually configure resolutions on the physical monitor.
Step by step: Installation and start-up

The first step is to download Sunshine from its official repository on GitHub. Once installed, we must Run it with administrator privileges and access your control panel through your web browser (usually at the address https://localhost:47990). Allí crearemos un usuario y contraseña para proteger el acceso.
Después, instalamos Moonlight en el dispositivo cliente. Al abrirlo, el programa debería detectar automáticamente el PC si están en la misma red. Para vincularlos, Moonlight nos dará un four-digit PIN code que debemos introducir en la pestaña «Pin» de la interfaz web de Sunshine en el PC host. Una vez hecho esto, la conexión queda establecida y ya podemos launch the desktop or specific games.
Un detalle vital para que los mandos funcionen es instalar el driver ViGEmBus on the server PCWithout this controller, Moonlight is very likely to not recognize inputs from the Xbox or PlayStation controller, leaving us with the perfect video but without control over the character.
Extreme optimization to eliminate lag

If you want a truly premium experience, you can't leave Windows with its factory settings. To avoid FPS drops, it's recommended to Disable Windows Game Mode and the dynamic refresh rate (DRR). It's also a good idea to put the power plan in High performance and close any unnecessary applications que esté consumiendo ancho de banda en segundo plano.
En cuanto a la red, el consejo de oro es Connect the host PC via Ethernet cableTo further reduce latency, we can access the network adapter properties and disable options such as Flow Control, the green Ethernet and interrupt moderation. If you use Windows, an advanced trick is to change the process priority sunshine.exe a real-time using a PowerShell scriptensuring that the system doesn't take away resources while you play.
Video settings and codecs according to the hardware
Image quality depends entirely on your GPU's encoder. In Sunshine, we must force the use of the specific hardware: NVENC for NVIDIA cardsAMF for AMD or QuickSync for Intel. If you have an AMD card, configure the use of AMF in ultralowlatency mode y el control de tasa en VBR es fundamental para evitar artefactos visuales.
En el cliente Moonlight, la elección del codec es clave. El H.265 (HEVC) or AV1 They are much more efficient than H.264, offering superior quality while consuming less bandwidth, although they require more decoding power. To avoid screen tearing, it is recommended Disable V-Sync and Frame Pacing in competitive games, although for single-player games it's better to leave them active for smoother gameplay.
How to play from away from home (WAN)
To stream over the internet, we have two options. The simplest is to use a VPNs like Tailscale or ZeroTier, que crea una red virtual segura entre tus dispositivos sin tocar el router. Es la opción ideal para quienes no quieren complicaciones técnicas, aunque puede añadir unos pocos milisegundos de retraso.
Si buscas el máximo rendimiento, lo ideal es hacer Port Forwarding on the routerWe must open TCP ports 47984 and 47989, and UDP ports 47998, 47999, 48000, and 48002, pointing them to the PC's local IP address. To turn on the computer remotely, we can activate the Wake-on-LAN in the BIOS o usar un enchufe inteligente configurado para que la PC arranque al recibir corriente.
Al combinar una red optimizada, el uso de drivers como ViGEmBus y la correcta selección de codecs según nuestra GPU, conseguimos transformar cualquier pantalla de la casa en una estación gaming de primer nivel. El secreto reside en balancing resolution and bitrate Depending on the strength of your connection, always prioritize Ethernet over Wi-Fi to ensure a smooth and uninterrupted experience. Now you know how to install and configure Sunshine to stream games from Windows.
Passionate about technology since he was little. I love being up to date in the sector and, above all, communicating it. That is why I have been dedicated to communication on technology and video game websites for many years. You can find me writing about Android, Windows, MacOS, iOS, Nintendo or any other related topic that comes to mind.