Best for · VPN

Moonlight over Proton VPN with Sunshine: the setups that work

We read every plan page. Paid links are labelled. Money never changes a ranking. How we pick.

Verdict Our pick

The bar guide has a call.

The vectaai bar guide pointing at the verdict
  • Moonlight to Sunshine over Proton VPN usually breaks on the host side.

Compared here

  • 01Proton VPN
  • 02Tailscale
  • 03ZeroTier
  • 04Sunshine
  • 05Moonlight

Short answer

Moonlight to Sunshine over Proton VPN usually breaks on the host side. Sunshine needs several fixed ports reachable (TCP 47984, 47989, 48010 and UDP 47998 to 48002 plus 48010, per Moonlight's setup guide), and Proton VPN's port forwarding opens one random port on P2P servers that changes when you reconnect. So you cannot simply "port forward through Proton" for game streaming.

What works: exclude Sunshine from the VPN with Proton's split tunneling (paid plans; apps and IPs on Windows), so the stream uses your normal connection while everything else stays on Proton. Or run Tailscale or ZeroTier for Moonlight next to Proton, which Moonlight's own guide suggests for remote play. Or keep Proton on the client only, if your home PC is reachable normally. Below: why it breaks, each fix step by step, and which to pick.

Proton VPNTailscale

Sponsored links. We may earn a commission; it never changes the pick.

At a glance

From Moonlight's setup guide, Sunshine's documentation and Proton VPN's support pages, read 3 December 2026.
SetupWhere Proton runsWhat you doWorks for Moonlight?Catch
Proton on host, nothing elseGaming PCTurn Proton on and try to stream from outsideUsually no: Sunshine's ports are not reachableProton forwards one random port, P2P servers only
Split tunneling on hostGaming PCExclude Sunshine (or its traffic) from ProtonYes, stream bypasses the VPNPaid Proton plan; Windows has app and IP rules
Tailscale or ZeroTier plus ProtonBothPair Moonlight on the Tailscale 100.x addressOften yesTwo VPN apps can clash; test and use split tunneling
Proton on client onlyPhone, laptop or TVHost ports forwarded at home; client connects through ProtonYes, if the home PC is reachableExtra latency from the VPN hop
Same home networkEitherStream on LANYes, if LAN traffic is not forced into the VPNCheck Proton's LAN or kill switch settings

Money first. Proton VPN pays us a share on renewals if you buy through our link; Tailscale's link goes through /go/ too, and we have not verified a program there. The fix that works best for you might be a free one, and we say so below. We follow the FTC's disclosure guide.

What we did: we read Moonlight's setup guide, Sunshine's documentation and Proton's support pages on port forwarding and split tunneling on 3 December 2026. We have not measured latency on these setups, so there are no millisecond numbers here. The "why" below is how the networking works, explained plainly.

Why Moonlight breaks when Proton is on

Moonlight is the client: your phone, laptop, TV or handheld. Sunshine is the host: the gaming PC that encodes the stream. For Moonlight to connect from outside your home, Sunshine has to be reachable on several ports.

Moonlight's setup guide lists them for manual forwarding:

  • TCP: 47984, 47989, 48010
  • UDP: 47998, 47999, 48000, 48002, 48010

When Proton VPN is on the host PC, its traffic leaves through Proton's server. Anyone trying to reach your PC from outside now hits Proton's server, not your router. Your router's port forwarding rules no longer apply to the VPN path, and Proton does not open those ports for you.

Why Proton's port forwarding does not fix it

Proton does have port forwarding. Its support page says:

  • It is available on all paid plans, not the free one.
  • You must be connected to a P2P server.
  • The server "picks a random port number and opens it for incoming traffic."
  • The number usually changes when you reconnect.
  • It is not compatible with NAT type 2 (moderate NAT), and UPnP and NAT-PMP should be off in the client app.

That design suits a torrent client, which can be told "listen on port X" each time. Moonlight and Sunshine expect a fixed set of ports. One random port, changing on reconnect, does not cover them. So, for practical purposes, Proton's port forwarding is the wrong tool here.

Fix 1: Keep Sunshine off the VPN with split tunneling

This is the cleanest fix if you want Proton on your gaming PC for everything else.

Proton's split tunneling lets some traffic skip the VPN. Per its support page:

  • Windows: exclude or include specific apps and IP addresses, with IPv4, IPv6 and CIDR ranges.
  • macOS: experimental, exclude apps only, WireGuard and Stealth protocols only.
  • Linux: exclude or include apps in the official Ubuntu, Fedora and Arch apps; not in the unofficial Flatpak.
  • Android: apps and IP addresses, in Exclude or Inverse mode.

It is a paid feature. Also note: on most platforms, split tunneling and the kill switch cannot be used together, but on Windows both kill switch modes work with split tunneling.

Steps on a Windows gaming PC:

  1. Open Proton VPN, go to Settings, then Split tunneling, and turn it on.
  2. Choose exclude mode.
  3. Add Sunshine as an excluded app. If the stream still fails, also exclude the IP address of the device you stream to, or your home network's range.
  4. Reconnect Proton and test Moonlight from outside your home.
  5. Make sure your router forwards Sunshine's ports, or turn on Sunshine's UPnP option in its web UI's network settings.

Now game traffic uses your home connection directly, and browsing, downloads and everything else still go through Proton.

Fix 2: Use Tailscale or ZeroTier for the stream

Moonlight's own guide suggests mesh networks for streaming over the internet without opening router ports, and it calls out ZeroTier for situations like carrier-grade NAT or networks that block Moonlight. With Tailscale, devices join a private network and Moonlight connects to the host's 100.x.x.x address. The guide warns that if Tailscale cannot make a direct connection, you will not be able to stream between those devices.

How to combine it with Proton:

  1. Install Tailscale (or ZeroTier) on the gaming PC and on the client device.
  2. Pair Moonlight with Sunshine on your home network first, as the guide recommends.
  3. Away from home, connect Moonlight to the host's Tailscale address.
  4. If Proton is also on the host, test carefully. Two VPN apps can fight over routes. Proton's split tunneling (exclude Tailscale) is the usual way to keep them apart.

See our page on whether Tailscale is a VPN for what it does and does not do.

Moonlight's guide also lists NordVPN Meshnet as another way to link devices into a virtual LAN without port forwarding. If you already pay for NordVPN, that is an option; it must stay active for streaming over the internet to work.

Fix 3: Run Proton only on the client

If what you really want is privacy on the café or hotel Wi-Fi you are streaming from, put Proton on the client only. The host stays at home with normal port forwarding (or UPnP) for Sunshine. The client connects out through Proton to your home IP.

This works because outbound connections through a VPN are normal; it is inbound connections to the host that Proton blocks. The cost is an extra hop: the stream goes from your home, to Proton's server, to you. Pick a Proton server close to you or close to home to keep the delay down.

Streaming at home with Proton on

On the same home network, Moonlight normally finds Sunshine directly. If Proton is on and streaming breaks even at home, the VPN is probably capturing local traffic. Exclude Sunshine or your local network range with split tunneling, or pause Proton while you play. Our page on Proton VPN blocking a NAS covers the same local network problem from another angle.

Security notes

  • Do not expose Sunshine's web UI. Sunshine's docs say the web UI runs on https://localhost:47990. Do not port forward it to the internet.
  • Pair at home. Moonlight's guide recommends pairing on your home network before streaming remotely.
  • Mesh beats open ports. Tailscale or ZeroTier avoid opening router ports at all, which is a smaller attack surface.

Which setup to pick

  • You want Proton on the gaming PC for everything else: split tunneling, exclude Sunshine.
  • You are behind carrier-grade NAT or cannot forward ports: Tailscale or ZeroTier.
  • You only care about privacy on the Wi-Fi you stream from: Proton on the client only.
  • Proton free plan only: split tunneling and port forwarding are paid features, so use Tailscale or ZeroTier for the stream, or pause Proton while you play.

For Proton and gaming in general, see Proton VPN for gaming. Everything else is in the VPN hub.

Bottom line

Moonlight over Proton VPN with Sunshine fails when Proton sits on the host, because Sunshine needs a fixed set of ports and Proton only forwards one random port on P2P servers. Keep the stream off Proton with split tunneling, carry it over Tailscale or ZeroTier instead, or run Proton only on the device you stream to. Pick the one that matches why you wanted Proton on in the first place.

Questions people ask

Can I use Moonlight and Sunshine with Proton VPN on?

Yes, but not by simply turning Proton on and forwarding ports. Sunshine needs several fixed ports open, and Proton's port forwarding gives you one random port on P2P servers. The working setups are split tunneling to keep Sunshine off the VPN, a mesh VPN like Tailscale or ZeroTier for the stream, or Proton only on the client.

Which ports do Moonlight and Sunshine need?

Moonlight's setup guide lists TCP 47984, 47989 and 48010 and UDP 47998, 47999, 48000, 48002 and 48010 for manual port forwarding. Sunshine can try to open them automatically with UPnP from its web UI's network settings. Sunshine's own web UI runs on port 47990, which you should not expose to the internet.

Does Proton VPN port forwarding work for game streaming?

Not for Moonlight. Proton's support page says port forwarding works on P2P servers with paid plans, the server picks a random port, and the number usually changes when you reconnect. Moonlight expects Sunshine's fixed set of ports, so one random port does not cover it. Proton's feature is aimed at torrent clients.

Should I use Tailscale instead of port forwarding for Moonlight?

For many people, yes. Moonlight's guide lists Tailscale and ZeroTier as ways to stream over the internet without opening router ports, which also helps behind carrier-grade NAT. You connect Moonlight to the host's Tailscale 100.x address. If Tailscale cannot make a direct connection, the guide warns streaming will not work.

Will a VPN add lag to Moonlight streaming?

It can. Every extra hop adds distance, and routing your stream through a VPN server in another city or country adds delay you will feel in fast games. That is why the best setups keep the stream itself off Proton, with split tunneling or a direct mesh connection, and use Proton for everything else.

Sources

Every fact above comes from these pages. Prices change, so each one carries the date we read it.

  1. Moonlight setup guide (GitHub wiki), checked 3 Dec 2026
  2. Sunshine documentation: Getting started, checked 3 Dec 2026
  3. Proton VPN support: Port forwarding, checked 3 Dec 2026
  4. Proton VPN support: Split tunneling, checked 3 Dec 2026
  5. Proton VPN pricing, checked 3 Dec 2026
  6. FTC: Disclosures 101 for Social Media Influencers, checked 3 Dec 2026