First, modify the registration form.
1, Start-Run-Registry Edit
Expand in turn
2、HKEY _ LOCAL _ MACHINE/SYSTEM/current CONTROL set/CONTROL/
Terminal server /WDS/RDPWD/TDS/TCP
Change the port number in the key value on the right to the port number you want to use. Note the decimal system (example 4567).
3. HKEY _ local _ machine/system/currentcontrolset/control/terminal server/
WINSTATIONS/RDP-TCP/
Change the port number in the key value on the right to the port number you want to use. Note the decimal system (example 4567).
4. Restart the server after modification, and the settings will take effect.
5. That's it. When connecting with Microsoft _ terminalserver _ client.
You should fill in IP:4567.
That is, ip is followed by a colon and a port number.
Second, change the firewall and open the required port (I use 4567 here).