Question: rds how to change port?
Answer: Start the registry editor. ... 
Navigate to the following registry subkey: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\PortNumber.
Click Edit > Modify, and then click Decimal.
Type the new port number, and then click OK.