What Port Does Moonlight Use?
Moonlight is an open-source implementation of NVIDIA GameStream, allowing users to stream games from their PC to their Android or iOS device. To establish a connection between the PC and the device, Moonlight uses a set of specific ports. In this article, we will explore the ports used by Moonlight and provide a comprehensive overview of its setup process.
TCP Ports Used by Moonlight
Moonlight uses three TCP ports to establish a connection between the PC and the device:
- 47984: This port is used for the initial connection establishment and authentication process.
- 47989: This port is used for the game streaming process, which transmits the game data from the PC to the device.
- 48010: This port is used for the control channel, which handles mouse and keyboard input from the device and sends it to the PC.
Setting Up Moonlight
To set up Moonlight, you need to follow these steps:
- Install Moonlight: Download and install Moonlight on your PC and device.
- Configure Moonlight: Launch Moonlight on your PC and configure it to use the correct TCP ports.
- Connect to Moonlight: Launch Moonlight on your device and connect to the PC using the Moonlight client.
Why are these ports used?
Moonlight uses these specific ports to establish a secure and reliable connection between the PC and the device. The use of these ports ensures that:
- Authentication: The initial connection establishment process uses port 47984 to authenticate the device and ensure that only authorized devices can connect to the PC.
- Game Streaming: Port 47989 is used for the game streaming process, which transmits the game data from the PC to the device.
- Control Channel: Port 48010 is used for the control channel, which handles mouse and keyboard input from the device and sends it to the PC.
Additional Ports Used by Moonlight
In addition to the three main ports mentioned above, Moonlight also uses several additional ports for various purposes:
- 5353: This port is used for DNS queries and resolution.
- 3478-3480: These ports are used for UDP-based communication between the PC and the device.
Conclusion
In conclusion, Moonlight uses three TCP ports (47984, 47989, and 48010) to establish a connection between the PC and the device. The use of these ports ensures a secure and reliable connection, allowing users to stream games from their PC to their Android or iOS device. By understanding the ports used by Moonlight, users can set up the software correctly and enjoy a seamless gaming experience.
Table: Moonlight Ports
| Port Number | Description |
|---|---|
| 47984 | Initial connection establishment and authentication process |
| 47989 | Game streaming process |
| 48010 | Control channel for mouse and keyboard input |
| 5353 | DNS queries and resolution |
| 3478-3480 | UDP-based communication |
Additional Resources
- Moonlight Official Documentation: https://moonlight-stream.org/docs/
- Moonlight GitHub Repository: https://github.com/moonlight-stream/moonlight