By Vivian / Last Updated November 9, 2021

Need to change RDP port Win 10

“I want to know if I can change the port number of Windows Remote Desktop? I know 3389 is the default port. I'm trying to connect my Win10 at home to my work computer, but it doesn't seem to work because port 3389 hasn't been forwarded yet. And I don't have permission to do so.”

How do I change the RDP port on Windows 10?

As the case is shown above, we can’t use the Remote Desktop feature to remotely control when the two computers are not on the same LAN. Currently, we need to port forward to realize Remote Desktop Connection. Apart from that, it is acknowledged that the 3389 port is the default, so many users are prone to change the RDP port for security, which makes it difficult for hackers to access the data or credentials. How to change the RDP port on Win 10? Read the following steps to change the RDP port.

Way 1: Change the port number in Registry Editor

Step 1. Press Windows + R and type "regedit" and then press “Enter” key.

Run Box Regedit

Step 2. Navigation:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp

Step 3. Scroll down and find the "PortNumber" DWORD and double-click it.

Port Number

Step 4. Change the Value data to your new port numbers such as 22102 (between 1025 and 65535) and tick Decimal.

Change Port Number

Step 5. Click on OK and restart your computer.

Way 2: Modify Firewall

Step 1. Press Win + R to run the box, type “Control Panel” and press the “Enter” key to open the Control Panel.

Run Control Panel

Step 2. Click the “System and Security” and then select “Windows Firewall.” Choose “Advanced Settings.”

Advanced Settings

Step 3. Click the “Inbound Rules” option on the left of the Windows Firewall window and then click the “New Rule” option under the “Actions”.

Inbound Rules Firewall

Step 4. Click the “Port” option and then click “Next.”

Port

Step 5. Click “TCP” for the port type and then click “Specific local ports.” Type in the port number such as 3327 to the textbox and then click “Next.” 

TCP 3327

Step 6. Click “Allow the connection” and then click “Next.”

Allow the Conenction

Step 7. Select all options for connection types, then click “Next” again

Confirm Check

Step 8. Type in a name for the rule such as "TCP port 3327," then click “Finish” to allow the 3327 port in Windows Firewall.

RDP Port 3327

[Free] A remote control software without port forwarding: AnyViewer

From the feedback of many users, they meet with a series of problems in the process of connecting remotely after changing the RDP port. There’s no doubt that changing the RDP port can improve security and promote the RDP session. But it produces more trouble for the users. So, is there an AnyViewer can be your solution! As a remote access software, AnyViewer won’t be limited by LAN to connect, meanwhile it can guarantee the security of RDP. It’s applicable for multiple Windows versions, like Windows 11/10/8.1/8/7 and Windows Server 2022/2019/2016/2012 R2. Follow me and know the operation of AnyViewer.

Download Freeware Win PCs & Servers
Secure Download

Step 1. Download and install AnyViewer, run it on the two PCS, and then you can see the device ID, Settings, temporary code in the main interface of AnyViewer.

Temporary Code

Step 2. On the host computer, click on Settings > Recipient, and then choose the third option “Set my security code”, and type the security you want.

Accept Remote Control

Step 3. On the client computer, input the device ID of the host computer in the partner ID box, and then click on OK.

Connect

Step 4. There will be a pop-up window on the client computer, choose the second one “Input security code”, and then click on “OK”.

Security Code

Step 5. Now the connection is successfully established.

Remote Viewing Files

Note: you can remote access the computer via "Send a control request" when there is someone to accept your request.

Conclusion

How to change the RDP port on Win 10? After taking the solutions into practice, you may already change them successfully. However, if you meet some troubles in Remote Desktop Connection after the steps, you’d better choose 3rd party remote access software—AnyViewer, which is totally trustworthy.