[HKEY _ Local _ Machine \ System \ Current Control Set \ Control \ Terminal Server \ WDS \ rdpwd \ TDS \ TCP], then see the port number on the right, right-click and click Modify. Note that the radix option should be changed to decimal.
Then open [HKEY _ Local _ Machine \ System \ Current Control Set \ Control \ Terminal Server \ Winstations \ RDP-TCP] in the same way.
Finally, notice that in the control panel, enter the windows firewall and add the corresponding port number to the exception.