Self-made cloud game server! Moonlight use tutorial, use streaming technology to transfer computer games to mobile phones for play! (With external network streaming technology without stutter) (o゚▽゚)o Find

Brief introduction

Let me talk about what game streaming is. The simple description is to use high-performance computers to run games and send them to other devices in the form of videos, so that we can often play masterpieces on more devices.Currently, Tencent, NetEase in China, Google abroad Cloud game services provided by many first-tier Internet companies such as, Steam, Microsoft, etc. use similar streaming technologies, but the difference is that those streaming technologies use servers and games provided by manufacturers. If we have high-performance PCs and many games ourselves , You can build a streaming server by yourself.
Although steam provides a game streaming technology, steam's LAN streaming is good. External network streaming needs to go through a foreign server, making the experience extremely poor, and whether it is streaming optimization or game support (steam only supports steam on The game you bought is not as good as Moonlight.
However, there is a prerequisite for using Moonlight, because Moonlight is based on NVIDIA's technology implementation, so as a server for running games,Nvidia graphics card must be used!
If you are currently using an AMD graphics card, I remember there are similar applications, you can find it yourself.
First of all, we need to download Moonlight related installation packages.
Moonlight currently supports all mainstream platforms: Windows, Mac, Linux, iOS, Android, ChromeOS.
Currently I am using Windows platform + Android or Windows platform (high-performance PC) + Windows platform (mobile thin and light notebook) )
moonlight PC version Download : https://github.com/moonlight-stream/moonlight-qt/releases
month off Android version Download : https://github.com/moonlight-stream/moonlight-android/releases
moonlight PC End detection tool (used to detect whether the computer supports game streaming) : Moonlight PC end detection tool
If you can't open github or use github to download slowly, you can use the Baidu network disk link provided by me , extraction code: bpsm.
Note: The client and server I will use below.
Client: devices that display game screens, such as thin and light notebooks, mobile phones, tablets,
etc.Server: devices that run the game itself, high-performance PCs, gaming notebooks, etc.

Server configuration

  1. Open the Nvidia graphics driver (just as a server, you need to check whether it supports Nvidia's game streaming technology, that is, as the computer running the service, there is no need to do it in the computer displaying the game!)
    Insert picture description here
  2. Check if your computer supports streaming technology (if you can't find this attribute, you can try to upgrade the driver)
    Insert picture description here
  3. We are starting the streaming service provided by the graphics card.
    Insert picture description here
  4. After completing the above steps, we open the Moonlight PC detection tool downloaded earlier to check if we have any other problems.
    Insert picture description here
  5. We need to know our IP address, it must be the IP address of the network card we are using, I am currently using WiFi, so look at the IPv4 address of WiFi below, if it is a wired connection or other type of connection, find it The IPv4 of the Ethernet you are using is fine. If you want a programmer to view the IP in a little bit, you can enter it on the command line ipconfig. (Linux is ifconfig)
    Insert picture description here

Client LAN connection

  1. On the computer that needs to display the game screen, we need to install Moonlight's software. The PC side is installed as follows.
    Insert picture description here
  2. After the installation is complete, start the software. If the computer in the LAN cannot be automatically searched, we can click the computer logo in the upper left corner and manually enter the server host IP
    Insert picture description here
  3. To connect for the first time, we need to enter the verification code on the server, which I am here 0534.
    Insert picture description here
  4. The server will pop up the corresponding prompt box, enter the verification code.
    Insert picture description here
  5. Click the target host again to enter the game library of the server computerInsert picture description here
  6. If there is no game in the game library, or lack of games, we need to manually add the installation path of the game in the NVIDIA graphics driver, and then go to the homepage to rescan the game.
    Insert picture description here
    Insert picture description here
  7. We can adjust the picture. If it is a local area network, we can directly increase the picture quality and frame rate to the highest (the router is not too bad)
    Insert picture description here
  8. Below I used the game: Horizon 4 to test it, the current server is a 8700k+GTX1080 gaming laptop, and the customer service is Microsoft’s Surface Pro7 thin and light laptop. Playing games in the local area network is very smooth, and supports some touch screen operations. It is difficult for me to feel the delay. You can look at the picture below when the speed of my vehicle changes rapidly. The yardstick display is almost the same, and I can't feel the delay of the keyboard.
    Insert picture description here

Insert picture description here
Insert picture description here
If it is used in a mobile phone or tablet and other devices, it is recommended to have a handle. If there is no handle, you can open a virtual handle in the settings.
Insert picture description here

Internet streaming

The most ideal condition for external network streaming is that you have a fixed IP, but only a few areas of home broadband can apply for a fixed IP, so we need to use some networking software. The famous domestic one is Dandelion , and the foreign one is called zerotier . Chinese is not supported, let me introduce these two networking software separately.

Compared

Software name Dandelion zerotier
Is it free
bandwidth 1MB (free), 4M (58RMB/1 piece), if you want to increase bandwidth, more than one hundred and one trillion a year is not worth it The official stated the upper limit, and the individual estimates that it is at least 20 trillion or more, or there may be no speed limit at all
Maximum number of networking devices 3 (free), can add money to upgrade 50 (free), can be increased by adding money
support system Windows, mac, Linux, Android, iOS, Docker Windows, mac, Linux, Android, iOS, FreeBSD, NAS
Features Domestically produced, easy to download, and the personal professional version is not expensive Free, unlimited speed, free for 50 devices online at the same time!

Dandelion

Although the professional version is not expensive, I did not buy the professional version to try. If a friend tried the professional version, I hope to write the experience in the comment area below to benefit more people. As a poor student party, I tried it The free version of 1M can only play 360P 30 frame rate games at most (it is estimated that playing pixel wind games will feel confused). I tried 720P. The required bandwidth is 5M, but the resolution is enough to play on the phone. It is very simple to use. After registering a Dandelion account, log in separately on the server and customer service sides.
Insert picture description here

Then in the Moonlight client, change the IP to the IP address of our PC in Dandelion.
Insert picture description here

zerotier

Free, unlimited speed, free for 50 devices to be online at the same time! The
only drawback is that there is no Chinese, Android download requires a ladder to go to the Android market, Apple needs to change the area of ​​the
zerotier official website download page , first we enter the official website to download the required version, if needed Android users who can’t access the Internet with magic can go to my Baidu cloud disk to download the Baidu network disk link , extraction code: bpsm. To change the account service on iOS, go to the Japanese service and the US service to download it.
After the download is complete, let's go to the official to register an account , and the registration account will not be repeated here. After the
Insert picture description here
registration is completed, open the network in the upper right corner and click Add Network.
Insert picture description here
You can choose a name according to your preference, and then select the access control as public!
Then remember yourself Network ID (Network ID), here is a0cbf4b62ac554a3 Insert picture description here
. After creating it, you need to install zerotier on both the client and server. You can install it yourself according to the system. There is only one option in the middle of the PC to view the software document, which is irrelevant. The installation screenshot is no longer being put, it is nothing.
After the installation is complete, we start zerotier, and the started zerotier will appear in our status bar icon, select Join Network
Insert picture description here
and enter the network ID I let everyone remember above, and click Join.
Insert picture description here
If it is a Windows 10 system, a network request will pop up. , Click Yes here, be sure to click Yes!, if there is no point, or the point is wrong, right-click the zerotier icon in the status bar, click the option of a generation gap (that is, your network ID displayed) and re-tick This option will pop up again.
Insert picture description here
Both the server and the client of this software need to be installed, but we mainly need to know the IP of the server. To view the IP of the server, we need to click the Show Networks option in the small icon in the zerotier status bar.
Insert picture description here
Among them, our IP is 192.168.192.81without /24!!! (Popular science means /24subnet mask 255.255.255.0) The addition of the
Insert picture description here
Android end is similar. After the
Insert picture description here
addition is completed, we can use Moonlight for external network connection (remember to change the IP to zerotier software to see IP address!)
Insert picture description here

Add games or software by yourself

Some games may not be scanned by Nvidia, or we may want to use some software to stream. At this time, we can add the software we need to start by ourselves. You only need
Insert picture description here
to add a variety of options in the SHIELD option in the Nvidia graphics card settings. We want to play games. In the dead of night, we can use mobile phones to play some text-type games that are suitable for touch screens in bed.
Insert picture description here
Ah this

In addition to the networking technology I used above, the external network streaming can also be solved by some intranet penetration technologies. I did not cover this aspect. If the relevant big players can try it. If you can apply for a public IP like your current operator, which is definitely the best.

Guess you like

Origin blog.csdn.net/qq_39611230/article/details/110734616