🎮 Moonlight / NVIDIA GameStream: Required Port Forwarding
To stream games over the internet to Moonlight, you must forward the following TCP and UDP ports from your public IP to your GameStream PC (host with GeForce Experience):
✅ Required Ports
| Protocol | Port | Description |
|---|---|---|
| TCP | 47984 |
Main control connection |
| TCP | 47989 |
Video stream (H.264/HEVC) |
| UDP | 47998 |
Input (keyboard, mouse, gamepad) |
| UDP | 47999 |
Audio (speaker output) |
| UDP | 48000 |
Video stream (data channel) |
| UDP | 48010 |
Optional, alternate video or QoS |
| TCP | 48010 |
Optional, handshake or fallback |
- ✅ Minimum Required: Forward 47984 TCP, 47989 TCP, and 47998–48000 UDP
- 🔒 Optional/Improved Stability: Add 48010 TCP + UDP
📡 Summary for Router Port Forwarding
| External Port | Protocol | Internal IP → Port |
|---|---|---|
| 47984 | TCP | 192.168.x.x → 47984 |
| 47989 | TCP | 192.168.x.x → 47989 |
| 47998 | UDP | 192.168.x.x → 47998 |
| 47999 | UDP | 192.168.x.x → 47999 |
| 48000 | UDP | 192.168.x.x → 48000 |
| 48010 | UDP | 192.168.x.x → 48010 (optional) |
| 48010 | TCP | 192.168.x.x → 48010 (optional) |
- Make sure your firewall on the GameStream PC allows these ports as well.
🔁 Sunshine reuse the exact same port forwarding config:
| Port | TCP | UDP |
|---|---|---|
| 47984 | ✅ | ❌ |
| 47989 | ✅ | ❌ |
| 47998 | ❌ | ✅ |
| 47999 | ❌ | ✅ |
| 48000 | ❌ | ✅ |
| 48010 | ✅ (optional) | ✅ (optional) |
- 🎯 Just forward these ports to the Sunshine server’s internal IP.Sunshine lets you change the ports in its config file or Web UI
评论区