
How to set up Remote Desktop with port 25 on Windows 11? Remote Desktop Protocol (RDP) is a powerful tool that allows users to connect to & control a computer from a remote location. It’s particularly useful for IT professionals, remote workers, and anyone who needs to access their computer from afar. By default, RDP uses port 3389, but there are scenarios where you might want to change this port for security reasons or to avoid conflicts with other services. In this blog, we’ll walk you through the steps to set up a remote desktop connection using port 25 on Windows 11.
Why Change the Default RDP Port?
The default RDP port (3389) is well-known, making it a common target for hackers and automated bots. Changing the port to a less common one, such as port 25, can help reduce the risk of unauthorized access. However, it’s important to note that port 25 is traditionally used for SMTP (Simple Mail Transfer Protocol), which handles email transmission. If you’re using port 25 for RDP, ensure that it doesn’t conflict with any existing email services on your network.
Step 1: Check if Port 25 is Available
Before changing the Remote Desktop with port 25 Windows 11, verify that port 25 is not already in use on your system. Here’s how:
- Open the Command Prompt as an administrator.
- Run the following command:
Copy
netstat -an | find "25"
- If you see any results, port 25 is already in use. You’ll need to choose a different port or stop the service using port 25.
Step 2: Change the RDP Port to 25
To change the default RDP port to port 25, follow these steps:
- Open the Registry Editor:
- Press Win + R, write regedit, & press Enter.
- Navigate to the following path:
Copy
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
- Modify the Port Number:
- In the right-hand pane, find the PortNumber entry.
- Double-click it and change the value from 3389 to 25.
- Select the Decimal option to ensure the value is interpreted correctly.
- Save and Exit:
- Click OK to save the changes.
- Close the Registry Editor.
Step 3: Allow Port 25 Through the Firewall
By default, Windows Firewall blocks most incoming connections. To allow RDP traffic on port 25, you’ll need to create a new firewall rule:
- Open the Windows Defender Firewall with Advanced Security:
- Press Win + S, type Windows Defender Firewall with Advanced Security, and open it.
- Create a New Inbound Rule:
- In the left-hand pane, click on Inbound Rules.
- Click New Rule in the right-hand pane.
- Select Port and click Next.
- Choose TCP and enter 25 in the Specific local ports field.
- Click Next, then select Allow the connection.
- Choose the network types (Domain, Private, Public) and click Next.
- Name the rule (e.g., “RDP Port 25”) & click the Finish.
Step 4: Configure Your Router (If Applicable)
If you’re accessing your computer from outside your local network, you’ll need to configure your router to forward port 25 to the internal IP address of your Windows 11 machine. Here’s how:
- Log in to your router’s admin panel (usually accessible via a web browser).
- Navigate to the Port Forwarding section.
- Add a new rule:
- External Port: 25
- Internal IP Address: The IP address of your Windows 11 PC.
- Internal Port: 25
- Protocol: TCP
- Save the changes.
Step 5: Connect to the Remote Desktop
Once the port has been changed and the firewall is configured, you can connect to your Windows 11 machine using the new port:
- Open the Remote Desktop Connection app:
- Press Win + R, type mstsc, & press Enter.
- Enter the IP address of the remote computer followed by the port number:
Copy
<IP Address>:25
Example: 192.168.1.100:25 - Click Connect and enter your credentials when prompted.
Important Considerations
- Security Risks:
- While changing the RDP port can reduce the risk of automated attacks, it’s not a foolproof security measure. Always use strong passwords and consider enabling Network Level Authentication (NLA) for added security.
- Port Conflicts:
- Ensure that port 25 is not being used by other services, such as an email server. If it is, choose a different port for RDP.
- ISP Restrictions:
- Some Internet Service Providers (ISPs) block port 25 to prevent spam. If you’re unable to connect, check with your ISP or use a different port.
- Backup Your Registry:
- Prior to making changes to the Windows Registry, create a backup. This allows you to restore the system if something goes wrong.
Troubleshooting Common Issues
- Connection Failed:
- Double-check the firewall settings and ensure port 25 is open.
- Verify that the router is correctly forwarding port 25 to the internal IP address.
- Port Already in Use:
- If port 25 is unavailable, choose a different port and repeat the steps above.
- RDP Not Enabled:
- Ensure that Remote Desktop is enabled on your Windows 11 machine:
- Open Settings > System > Remote Desktop and toggle the switch to On.
- Ensure that Remote Desktop is enabled on your Windows 11 machine:
Conclusion
Changing the default Remote Desktop with port 25 Windows 11 can enhance security and help avoid conflicts with other services. However, it’s crucial to ensure that port 25 is available and properly configured on your system, firewall, and router. By following the steps outlined in this guide, you can set up a secure and efficient remote desktop connection tailored to your needs.
Remember, while changing the port adds a layer of security, it’s just one part of a comprehensive security strategy. Always keep your system updated, use strong passwords, and consider additional measures like VPNs for remote access. Happy remote computing!


