The RDP server may be disconnected due to different reasons. The common problems are the network, remote setting, system crash, remote service, firewall, and port issue. We will check these issues one by one in this article.
Consider that you can inform the issue to the RDP provider or the Windows VPS provider, and they should be able to resolve the issue. But if you want to check the issue yourself, you should have Console Access or VNC Access.
You can find this access in your client area control panel, but if you don’t have it, you should ask your provider to create it for you.
Note: When you open the console, first check that the Windows can boot up or not; that may be the main reason why your RDP is not connecting.
Common Errors That You May Face During RDP Connection
- An internal error has occurred: In this situation, restart the server, and it will be resolved.
- The remote desktop can’t connect to the remote computer for one of these reasons: Check steps 1, 2, 3, 4, 5, and 6 in this article to find the issue.
- The logon attempt failed: This error says that the username or password is incorrect.
1. The RDP Is Powered Off!
This can be the first and simple issue why your RDP is not connecting. It is simple, but I’ve seen that it happens many times. So before all, check that your virtual machine is not powered off.
2. The RDP Is Disconnected Because Of Network Issue
This is the most common issue why your RDP is not connecting. To figure out if this is the issue, log in to your RDP and ping 126.96.36.199 to find out if your network configurations are correct or not.
To ping 188.8.131.52, open Run Windows by pressing Windows Key + R simultaneously. Then type CMD in the run windows and press enter. Or, instead of this, you can find CMD in the Windows search bar.
Once the CMD is open, type the below command and press enter.
ping -t 184.108.40.206
In the above command, -t parameter allows the system to ping until we cancel it, and if you don’t use it, pinging will stop after 4 times automatically, and 220.127.116.11 is Google’s DNS Server IP.
Note: If you press the ctrl + c buttons simultaneously, the pinging will stop, and you will see the ping result.
If you see a replying ping to 18.104.22.168, the issue is not the network, and you can pass to the next step, but if you see a time out, you should inform your RDP server provider to check the issue.
3. The Remote Setting Is Not Allowing The Connections
A remote setting is where you choose that RDP connections are allowed in your server or not. In this section, we check that it is allowed to accept the RDP connections or not.
To open the remote setting, press the Windows Key + Pause Break button simultaneously.
If that didn’t work for you, you could open it through Run. Open the run section by pressing Windows Key + R, type the below command, and press enter.
control /name Microsoft.System
Note: In Windows 10, you can open the system setting by right-clicking on This PC and choosing properties.
On the new windows opens, choose Remote Setting in the left panel. You will see that another window opens. In this section, the remote setting should be on the option “Allow remote connections to this computer or not.” If it is not, choose it and press enter.
Now recheck your RDP connection. If still it is not resolved, go to the next step.
4. Remote Desktop Service Is Stopped
Windows has a service for each of its packages, and you can manage them through the service manager. If the remote desktop service (RDS) is disabled, you will lose your connection to the server.
To open services, press Windows Key + R and type the below command, and press enter.
A new window will appear; Search for the “Remote Desktop Service” in this window. If its status is running, so this is not the issue. But if you don’t see the status as running, double click on it, choose the startup type as automatic, click on start and while it is started, choose OK.
Now check your RDP connection. If still it is not resolved, you will have to check the next step.
5. Firewall Has Blocked RDP Connection
A firewall can easily block your connection to the RDP server. This happens because of the configurations that we make on the firewall.
Inside the firewall, you can block or unblock remote TCP connection, or also you can whitelist or blacklisted IPs to have remote access to your server.
To check if the issue is the firewall or not, first, deactivate it and check the connection. Open the RUN section by simultaneously pressing Windows Key + R and type the below command.
A new window will appear; from the left panel, choose “Turn Windows Defender Firewall on or off.” Now turn off both private and public network firewalls.
Check the connection to your RDP again. If you could connect to the RDP or your Windows VPS by turning off the firewall, so maybe the remote TCP connection is not enabled on your firewall.
To enable remote TCP connection, enable the firewall again and choose the “Advanced Setting” in the left panel.
Find “Remote Desktop – User Mode (TCP-In)” in the new windows that appears, choose it, and enable it from the right panel by choosing Enable Rule.
6. RDP Default Port Has Been Changed
The remote desktop port is 3389 by default. Changing this port is one of the actions RDP owners take to increase the security after they buy RDP. Also, some RDP providers change it before providing the RDP to the clients.
If the RDP port has been changed, you should put it behind the IP when connecting to the server. The format of the IP that enters in the remote desktop connection should be like this.
Your Server's IP Address:Port Number --------> 22.214.171.124:55549
Now, if you’ve not changed it but forgot it, ask the RDP provider to tell you, but if you’ve changed it by yourself, you can find or change it through the registry setting.
To enter the registry, type the below command in Run Window.
Once it is opened, go to the below path.
Find the PortNumber option and open it. Put the base as a Decimal, and you will see the port number.
Note: When you change the RDP port, you should add the new port number to the firewall to allow the connections. To do this, you can use the below education.
The RDP connection may be disrupted because of different issues. Issues like network, system crash, remote connection port, etc.
In this article, we checked all of these items to find an answer to the question “Why My RDP Is Not Connecting.” I hope you’ve found this article useful and also have found the issue of your connection.
If you’ve not found the issue, let us know, and we will help you find it.
Also, please tell us if you’ve disconnected from your Windows VPS or RDP server because of a reason that we have not discusses in this article.