The Remote Desktop port of Windows system is 3389 port by default, but due to system security, we usually change the original 3389 port to another port after installing the system.
To change the original Remote Desktop Services 3389 port to 6678 Port as an example, the following procedures are described:
1. Open registry: Run regedit
2. Find: [hkey_local_machine\system\currentcontrolset\control\terminal server\wds\rdpwd\tds\tcp] Double-click on the right PortNumber--- > Click decimal---> Change the value to: 6678---> Click OK.
3. Then find: [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal server\winstations\rdp-tcp] Double-click on the right PortNumber---> Click decimal---> Change the value to: 6678---> Click OK.
4. Create a new text file copy and save the following code as a Reflash.bat file
@echo off
Taskkill/im explorer.exe/f
Ping-n 2 127.0.0.1 > nul
Start C:\windows\explorer.exe
5, run Reflash.bat to refresh the registry, of course, too troublesome small partners can choose to restart the computer can also
This looks like the original Remote Desktop Services port 3389 is changed to 6678 ports, and then remember to set up a firewall after the opening of the 6678 port has just changed, when the remote landing remember to add the port number to connect!!
For example: The original Remote Desktop is directly with 192.168.0.1, change the port number should be 192.168.0.1:6678
How to modify the Remote Desktop port for Windows systems