Hi,
You may try with the command (admin privilege):
Set-RDSessionCollectionConfiguration –CollectionName QuickSessionCollection –CustomRdpProperty "server port:i:xxxxx"
Or manually check the registry key related:
local machine\software\microsoft\windows n t\currentversion\terminal server\centralpublishedresources\publishedfarms\QuickSessionCollection\Deploymentsetting
But if there is external network and rd gateway involved, please also check the method stated of "Change Remote Desktop Gateway Port" in third link below.
Reference links:
How to change default RemoteApp port
http://tech-trainer.info/how-to-change-default-remoteapp-port/
https://social.technet.microsoft.com/Forums/windowsserver/en-US/a5baad5f-bad2-4713-a5d1-a7da0be3d9ee/change-rdweb-application-port-in-winserver-2012?forum=winserverTS
https://kommelsson.wordpress.com/2016/04/20/change-remote-desktop-gateway-port-and-remote-web-app-port/
Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.
If the Answer is helpful, please click Accept Answer and upvote it.
Thanks,
Jenny