Windows 11 Remote Desktop Port Change and IP Access Control Configuration
September 2025 Latest Update
(This method works for Windows 10 as well)
The default port 3389 is widely known among hackers and can easily become a target for attacks.
Using a different port number is an essential security practice to protect your system.
Choose a port number randomly from the registered port range (1024-49151) to make it hard to guess.
This guide uses port 49151 as an example.