Guide to Fixing the "An internal error has occurred" Error on VPS

VPTS Team Content has been moderated
Published date:25/3/2025 Update:14/8/2026 Views:144 Reviews: 4.7/5116reviews
VPTS on

While using a Windows VPS, you may see the message “An internal error has occurred” when connecting via Remote Desktop (RDP). This error prevents users from accessing the VPS even though the server is still running normally.

What is "An internal error has occurred"?

"An internal error has occurred" is a common error when connecting to a VPS via Remote Desktop (RDP). This error usually occurs due to incorrect system configuration, RDP service issues, firewall or security software blocking the connection, unstable network, or account login issues. When encountering this error, users should check network connections, restart the RDP service, adjust security settings, check firewalls, verify accounts, and perform other troubleshooting steps to ensure stable RDP connectivity.

Cause of error

The cause can stem from multiple factors such as:

  • ConfigurationRemote Desktop (RDP)inaccurate.
  • Windows Remote Desktop service encountered an issue.
  • Windows Firewall or security software is blocking the connection.
  • RDP port is not working or has been changed.
  • Network connection between device and VPS is unstable.

In this article,VPTSwill guide you on how to check and resolve the error"An internal error has occurred" on Windows VPSstep by step, from simple causes to issues related to RDP services and configuration.

Let's start by exploringWhat is the "An internal error has occurred" error and what typically causes it.

How to fix the "An internal error has occurred" error

An internal error has occurred
Image showing An internal error has occurred

1. Check Network Connection Between Computer and VPS

Open Command Prompt and use the command: ping to check if the VPS responds. If ping fails (Request timed out), it is very likely that the VPS is turned off, experiencing a network error, or being blocked by a firewall.

In this case, you should check your Internet connection, network configuration, or contact VPTS immediately for prompt support.

2. When using VPS encountering the error "An internal error has occurred"

In some cases, this error occurs because the VPS is using the default port 3389 and is subject to brute-force attacks or continuous scanning from automated tools. To fix this, you need to change the Remote Desktop (RDP) connection port to another less common port.

Step 1: Access VNC to log in to the VPS and change port

- Access the management pageVPTS.com

- Here, locate the VPS management tool and select VNC to open the remote control interface.

Illustration Step 1: Access VNC to log into VPS and change port

After accessing the VPS via VNC, you can execute the command to change the RDP port following the PowerShell instructions through these steps:

Step 2: Open PowerShell as Administrator

Find and open PowerShell as Administrator (Right-click> Run as Administrator).

Step 3: Change Remote Desktop port to resolve the issue

Copy the entire code snippet below and paste it into PowerShell, then press Enter to execute the command:

netsh advfirewall firewall add rule name=”Remote Desktop Service” dir=in action=allow protocol=TCP localport=2022 Set-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\Terminal*Server\WinStations\RDP-TCP\ -Name PortNumber 2022 shutdown /r /t 0
An internal error has occurred
PowerShell interface after executing the command to change the default RDP port.

Step 4: Restart VPS and log back in

After running the command successfully in PowerShell, wait for the VPS to automatically restart. Then, you can log back into the VPS via Remote Desktop with an IP in the form of:  103.xxx.xxx.xxx:2022.

an internal error has occurred hi.comp
IP with port format

3. Some important notes when encountering the error "An internal error has occurred"

Before performing troubleshooting steps, you should pay attention to several factors below to ensure a smooth connection:

  • Ensure stable network connectivity: Check your internet connection and confirm that the VPS is still running, to avoid confusing network drops with system failures.
  • Check firewall and security software: Firewall or antivirus programs may be blocking the Remote Desktop connection. You should try temporarily disabling this software to check again.
  • Update Remote Desktop Client: Use the latest version of Remote Desktop to prevent incompatibility errors caused by outdated software.

CONCLUSION

The “An internal error has occurred” error is one of the common issues when connecting to a VPS via Remote Desktop. Although not overly critical, failing to handle it properly can interrupt usage and affect your work.

Through the detailed instructions above, you can clearly understand the causes and the most effective troubleshooting steps for this error. Make sure you always monitor connection status, configure the RDP port correctly, and check the firewall regularly to minimize arising errors.

If you need a stable, high-speed VPS with prompt technical support, do not hesitate to contactVPTS– a leading provider in servers and network infrastructure in Vietnam.

Wishing you successful troubleshooting and smooth VPS access once again!

VPTS – Comprehensive Digital Infrastructure Solutions Provider

VPTS is a digital infrastructure solution provider in Vietnam, serving deployment, operation, and data storage needs for individuals, developers, and enterprises. The service ecosystem includesVietnam VPS, International VPS, VPS Anti DDoS, Hosting cPanel, dedicated server, Rack rental, Proxy IPv4/IPv6, S3 MinIOandCloud Storage.

Besides providing infrastructure resources, VPTS also focuses on assisting customers with deployment, configuration, and practical troubleshooting. Content on the VPTS Blog is drawn from common scenarios in operating VPS, servers, and online systems, helping readers understand root causes and apply clear solutions.

VPTS – Stable infrastructure, flexible solutions, and continuous partnership throughout operations.

VPTS Team Contact Information