Windows server changes remote port 3389

Note: Changing the server remote port requires closing the firewall, or opening the firewall port policy. For example, if you log in through the bastion machine, you need to set the remote port configuration. If you cannot log in to the server remotely through the bastion machine, the following are the change steps!

1. Click "Start" - "Run", enter regedit, and enter the command prompt.

Step 1: Enter the registry and find: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp, modify the PortNumber value, change it to decimal, view and modify it, enter the port number you want to be remote, 33891, 12345 wait

Step 2: Enter the registry and find: HKEY_LOCAL_MACHINE\SYSTEM\CurrentContro1Set\Control\Tenninal Server\WinStations\RDP-Tcp. Find PortNumber, change it to decimal and view and modify it. Change the value to the same as above. Enter the port number you want to remote. 33891, 12345, etc.

Step 3: Restart the server

Restart the server: enter services.msc, open the service, find Remote Desktop Services, restart the service or click on the page directly to restart the server

The server must be restarted, otherwise it will not take effect.

After completing the above steps, the change has been completed. Use the changed remote port to connect to the remote server.

Guess you like

Origin blog.csdn.net/Fadess/article/details/127248546