Remote Desktop Gateway

Imran Shabir 6 Reputation points
2020-10-29T18:04:55.11+00:00

Hi,

I have an issue with a new Gateway i created (setup below), i first got an error "The Computer cant verify the identity of the RD Gateway" and i confirmed the root certificate was in trusted as well as personal store. After a reboot i got the message "Your computer cant connect to the Remote Desktop Gateway". I checked the services were running for Remote Desktop.

Server 2016 (RDG.domain.com)
Applied Global Cert
Remote Desktop Gateway/Licensing server
port: 3390

P.S. I have followed other MS solutions (ie adding reg keys to Windows 10) and applying root cert, regarding both and they didnt work.
Also, apologies if this issue is raised in the wrong section.

Windows for business Windows Client for IT Pros User experience Remote desktop services and terminal services
Windows for business Windows Server User experience Other
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Philippe Levesque 5,836 Reputation points
    2020-10-30T02:56:39.177+00:00

    Hi

    By the registry key you mean that one ? HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\RDGClientTransport = 0x1 ?

    It will force the use of TCP, not UDP, which easier to route.

    If not that registry, please come back with what you set.

    Thanks

    0 comments No comments

  2. Anonymous
    2020-10-30T06:53:54.03+00:00

    Hi,

    Is there any collection created for RemoteApps?

    I noticed that your port is 3390 which is not the default for RD Gateway. The default port should be TCP 443 or UDP 3391. Have you changed the port? Is 3390 a TCP or UDP port?

    Since you have changed the port number, you have to specify the RD Gateway server name with the custom port when accessing with the RDP client.
    36176-image.png

    Also, on your RD Connection Broker you need to use powershell commands below to change the published gateway to include your custom port if you are using RemoteApps

    Import-Module RemoteDesktop

    Set-RDSessionCollectionConfiguration -CollectionName “MySessionCollection” -CustomRdpProperty “gatewayhostname:s:my.gateway.server:xxxx”

    For your reference
    https://kommelsson.wordpress.com/2016/04/20/change-remote-desktop-gateway-port-and-remote-web-app-port/

    Thanks,
    Eleven

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

  3. Imran Shabir 6 Reputation points
    2020-10-30T11:04:16.247+00:00

    Hi, Thank you for the responses..

    @Philippe Levesque - thats the reg key i used.

    @Anonymous - I added the ports under advanced settings of RDP but got the an error message (The connection was denied because the user account is not authorized for remote login) - i thought the policy would of allowed it and when i run the powershell command it responded with does not exist

    I had a look at the Overview and this is the message i got:
    A Remote Desktop Services deployment does not exist in the server pool
    To create a deployment, run the Add Roles and Features Wizard and select the Remote Desktop Services Installation option.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.