Skip to content

Cannot Connect via RDP: Troubleshooting

In this article

Instructions for connecting from different devices are in Connecting to a Windows server via RDP. If you cannot connect, go through the steps below in order. In the commands, replace SERVER_IP with your server's IP address.

Checks from your computer

  1. Check the server status in Invapi: the server must be powered on.
  2. Check whether the server is reachable:

    ping SERVER_IP
    

    No reply does not mean the server is down: by default, Windows Server Firewall may not respond to ping. The main check is the next one.

  3. Check whether the RDP port responds:

    Test-NetConnection SERVER_IP -Port 3389
    

    TcpTestSucceeded : True means the port is open.

    nc -vz -w 5 SERVER_IP 3389
    
    Result Meaning
    Port is open The network is fine; the problem is with authentication or the session itself (Authentication errors)
    Connection refused The server is reachable, but the RDP service is not listening on the port or the port has been changed
    Timeout / False Packets do not get through: a firewall, the server has not booted, or traffic is blocked along the way
  4. Rule out your own network: try connecting through a different ISP, for example over mobile internet, and check whether outbound port 3389 is blocked by a corporate firewall.

Note

If the server is unreachable only from certain networks or regions, follow the steps in I don't have SSH access to my VPS/VDS. What should I do? — they apply to RDP as well. You can check the port from external locations with the check-host.net service (the TCP port tab, SERVER_IP:3389).

Checks on the server via the console

If the port does not respond, open the server control console in Invapi.

The server is installing updates

If the console shows "Working on updates" or "Don't turn off your computer", wait for it to finish. Installing large updates can take a long time, and RDP is unavailable during this process. Do not force a reboot while the percentage is still changing.

RDP is enabled and listening on the port

Log in through the console and run the following in PowerShell as administrator:

# 0 — RDP is allowed, 1 — denied
Get-ItemProperty 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -Name fDenyTSConnections

# current RDP port
Get-ItemProperty 'HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -Name PortNumber

# service and listening port
Get-Service TermService
netstat -ano | findstr :3389

To enable RDP and start the service:

Set-ItemProperty 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -Name fDenyTSConnections -Value 0
Start-Service TermService

If the RDP port has been changed, connect with the port specified: SERVER_IP:PORT.

Windows Firewall

Make sure the RDP rules are enabled:

Get-NetFirewallRule -DisplayGroup "Remote Desktop" | Format-Table DisplayName, Enabled, Action
Enable-NetFirewallRule -DisplayGroup "Remote Desktop"

On localized versions of Windows, the rule group name is translated. If RDP runs on a non-standard port or access is restricted by IP, check the corresponding rules. For details, see Firewall configuration.

Authentication errors

Wrong password, account locked, or password expired

Check the keyboard layout and the username (Administrator by default). After several failed attempts, the account may be temporarily locked by the security policy. Check the account status through the console:

net user Administrator

Look at the Account active, Account expires, and Password expires lines. To unlock the account and set a new password:

net user Administrator /active:yes
net user Administrator *

If you do not remember the password, follow the Windows password reset instructions.

CredSSP authentication error

The message "An authentication error has occurred. The function requested is not supported" mentioning "CredSSP encryption oracle remediation" appears when the client and the server have different security update levels.

The proper fix is to install Windows updates on the server (through the console) and on the client. A temporary workaround on the client is to allow connections to an unpatched server:

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\CredSSP\Parameters" /v AllowEncryptionOracle /t REG_DWORD /d 2 /f

Attention

This setting weakens the client's protection. After updating the server, delete it or set it to 0.

Network Level Authentication (NLA)

If the client does not support NLA (older Linux clients), disable the NLA requirement on the server through the console:

Set-ItemProperty 'HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -Name UserAuthentication -Value 0

Once the problem is resolved, we recommend enabling NLA again (value 1).

Session limits and RDS licensing

Without the Remote Desktop Services role and RDS CAL licenses, Windows Server allows no more than two simultaneous administrative sessions. If the limit is exceeded, you will be prompted to disconnect another user.

If the RDS role is installed on the server, it works without activated licenses only during the grace period (120 days). After the grace period ends, connections fail with a licensing error. Options:

  • purchase and activate RDS CAL licenses;
  • remove the Remote Desktop Session Host role if you do not need multi-user access — two administrative sessions will remain available.

To connect to the administrative session, run:

mstsc /admin /v:SERVER_IP

Black screen after connecting

  • Wait 1–2 minutes: after a reboot or on first login, creating the user profile takes time.
  • Press Ctrl+Alt+End and select Task Manager → File → Run new task → explorer.exe.
  • In the mstsc client, on the Experience tab, disable Persistent bitmap caching and lower the color depth.
  • If this does not help, reboot the server through the console.

What to send to technical support

You can contact technical support in two ways: by email from the address specified in your account, or through the Help Center in the Invapi control panel by creating a ticket (how to create a ticket).

If the problem is not resolved, send the following to support:

  • the server IP address, your external IP address, city, and ISP;
  • the error text or a screenshot of the RDP client window;
  • the result of Test-NetConnection SERVER_IP -Port 3389 (or nc -vz);
  • the output of tracert SERVER_IP or mtr -r -c 50 SERVER_IP;
  • a screenshot of the server console from Invapi;
  • whether the connection works from another network (mobile internet).

Attention

Do not send server passwords in messages to support.

question_mark
Is there anything I can help you with?
question_mark
AI Assistant ×