Non-standard RDP connection port.

One possible problem with the connection is using a non-standard RDP port on the remote Windows server.

If you can connect to a remote server via IPMI or other remote connection means, you can check which port the RDP uses.
To do this, you need to do the following:

Open the editor (regedit.exe) and go to the
Terminal Server\

Find the parameter named PortNumber. This specifies the port for the RDP connection. (The default port is 3389)
If the remote server uses a non-standard port, you will need to specify the IP and port when connecting.

In case you cannot connect to the remote server, you can use the Nmap utility to determine the port to connect to.

nmap -Pn IP-server

Nmap can also be used for WIndows.
For more information about installation, and how to use it, visit

In order to change the port to standard or non-standard, you need to go through the steps specified in section 1, only now open the PortNumber parameter, select Decimal, and specify the port.

Note: If you use a non-standard port, you will need to open the port you specify in PortNumber. This can be done in the Windows Firewall settings.

Disabled the ability to connect to a remote desktop.

When using the graphical interface, you need to perform the following steps:
Run the command: SystemPropertiesRemote.
Then you need to go to the Remote Settings tab.
And check the box Allow remote connection to this computer.

Limiting session time

This may indicate that a session time limit has been set for all users who are logged in.

To change the time limit, follow these steps:

1. Run gpedit.msc
2. Computer Configuration-> Admin Templates-> Windows Components-> Remote Desktop Services->Remote Desktop Session Host->Session Time Limits
3. Enable the appropriate group policies and change them as needed.

Problem with remote desktop license (disconnection after 60 minutes)

You can do the following to solve this problem:

1. Run the local group policy editor (gpedit.msc)
2. In the left panel, go to:
Local Computer Policy->
Computer Configuration->
Administrative Templates->
Windows Components->
Remote Desktop Services->
Remote Desktop Session Host->

3. On the right pane, select: Use the specified Remote Desktop license servers and select Edit:
 – In the Group Policy Editor dialog box, select Enabled
 – Enter the name of the local computer in “License servers to use
 – Next go to Remote Desktop licensing mode
 – Set Per Device licensing mode

Note: If you select Per User licensing mode, the error may not go away.