Hi,
After you modify the registry to change RDP port.
The next time you connect to this computer by using the Remote Desktop connection, you must type the new port. If you're using a firewall, make sure to configure your firewall to permit connections to the new port number.
Restarting the Remote Desktop Service should be sufficient for the port change to become active. This will, however, terminate any active sessions. Just keep in mind that anyone using it will have to update their RDP file with :PORTNUMBER.
Hope this helps and please help to accept as Answer if the response is useful.
Best Regards,
Carl
Server Essentials Access Anywhere - change RDP port

Hi. I've got 2016 Standard with the Essentials role added. I'd like to change the RDP port in use by the server to a custom port. When my users log in to Access Anywhere and they get a list of available RDP connections, will the custom port be reflected in the RDP file too? Thanks.
3 answers
Sort by: Most helpful
-
Carl Fan 6,801 Reputation points
2021-02-26T09:31:31.543+00:00 -
Jack Cheung 1 Reputation point
2021-02-26T11:16:00.107+00:00 Hi. It sounds like you are talking about connecting to the Essentials server itself, but this isn't what I mean. When a user connects to Essentials via the web portal, they get a list of available internal PCs. When they click a PC, it downloads an RDP file. It is this RDP file which I want to have the custom port specified. Thanks.
-
Hugo Lyppens 1 Reputation point
2021-12-16T20:22:17.973+00:00 I have the same question.
I ran dism /online /Enable-Feature:Gateway-UI to enable the RD Gateway settings on my Windows Server 2016 with essentials role. I can change the port number here. But then in the generated .rdp files for the hosts, this port is not reflected in the gatewayhostname field.