When working with Terminal Server or RDP and trying to connect using RDP to different port,you have the choice to change the XP RDP 5.1 or 5.2 client connecting port.
For the “old” Windows 2000 Terminal Server client port changes see Use Terminal Server Client to Connect to a Different Port.
If you’ve changed the listening port on the TS from its’ default – 3389 (Change Terminal Server Listening Port)- you’ll also need to configure your client to connect to the new port. Changing the connection port on the RDP clients is quite easy.
To Alter the Port on the client side:
Another method of connecting to a different port that default is to run the MSTSC command with the required command line parameters:
/v:ServerName[:Port]
For example
to connect rdp to different port:
MSTSC /v:192.168.0.150:3390
Note: To use RDP on computers with operating systems other than Windows XP/2003 you will first need to install the RDP client (Download RDP 5.2).
When configuring RDP to different port connections, verify firewall rules allow the new port, ensure the port isn’t used by other services, and test connectivity using telnet. If issues persist, check server logs and confirm both client and server are properly configured for the new RDP port.
Changing RDP to different port numbers than the default 3389 helps prevent automated attacks, reduces vulnerability to port scanners, and adds an extra layer of security through security-by-obscurity principles, making it harder for malicious actors to identify RDP services.
Yes, you can configure multiple RDP to different port settings on a single server using port forwarding rules, allowing different users or departments to connect through unique ports for better access management and security control.
When setting up RDP to different port connections, consider that some firewalls may block non-standard ports, certain port numbers might be reserved by the system, and some legacy applications may not support custom RDP port configurations.
Before modifying RDP to different port configurations, export your current registry settings, document existing port assignments, and create a system restore point to ensure you can recover if issues arise during the port change process.
You might also want to read the following related articles: