How to Configure Windows Firewall for Custom RDP Port?

Today we will learn How to Configure Windows Firewall for Custom RDP Port in a few steps. Please follow the below steps.

Step 1: Open the Run utility using the Win+R keys and type wf.msc, then press the Enter button. This command will open Windows Firewall management options where you can add a new firewall rule.

Custom RDP Port

Step 2: Now select Inbound Rules in Windows Firewall MMC menu. After selecting these values, select a new rule by the action panel on the right.

Step 3: Next, select Port from the options list in the New Inbound Rule window. Then click on Next.

Steps 4: Since we are creating a custom rule for UDP and TCP ports, first select TCP, then select Specific Local Port, type the custom RDP port you chose in the first section and click Next.

Custom RDP Port

Step 5: Select Allow connection and press Next to continue.

Step 6: Now, leave all entries selected for full access except public to prevent Remote Desktop connection to a public network. Then, click Next to continue.

Custom RDP Port

Step 7: Finally, name the new network rule with description in the appropriate text box and click the Finish button to add a new rule.

Custom RDP Port

Step 8: Repeat steps 1 to 7 listed above, but choose TCP in step 4 and restart the system after changing.

Conclusion

We have tested this article for different versions of Windows like Windows 7, Windows 8, Microsoft Windows 10, Microsoft Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows Server 2016, and Windows Server 2019 to change the default RDP port. Here we have explained how to change the default RDP port, connect RDP to a custom port, and configure the RDP custom port in Windows Firewall. Also, we provide RDP admin services that you can purchase for best practices.

Scroll to Top