So you changed your RD Gateway port number.........

Yeah. That. Just run this guy below for your collections and you can update them. Unless you feel like blowing out your collections and starting over. I guess that works too.

Set-RDSessionCollectionConfiguration -CollectionName “$yourcollection” -CustomRdpProperty “gatewayhostname:s:remote.gateway.net:$portnumber”