Easily modify Windows XP remote management port

  
                              

Since Windows 2000, Microsoft has provided a Terminal Server service that delivers remote desktops locally. Through this service, visual remote management can be implemented very conveniently. After Windows 2000, Windows XP also provides this service. The Terminal Server Client program in Windows XP has evolved further than the one in Windows 2000, and many of the features are much more powerful.

The main new features of the Terminal Server Client program in Windows XP are:

(1) The sound on the target machine can be brought back to the machine.

(2) Support true color and can be used in full screen.

(3) And no need to install, just two files mstsc.exe and mstscax.dll can be used, very convenient.

The default port for Terminal Server is 3389, so many people who understand this feature of Windows use some special software or other methods to scan the port. It is very dangerous to find that the port is open to implement the intrusion. Therefore, in practice, you need to change the port of the Terminal Server.

The method for modifying the default port of Terminal Server is as follows:

1. Server-side modification

Change the PortNumber in the following two registry keys to a custom port:

HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Terminal Server\\Wds\\Repwd\\ Tds\\Tcp

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

2. Client modification

Windows 2000

Run Client Connection Manager to create a new connection to the server you just modified, and then export it to the server.cns file, the .cns file is to store this connection Open the file with the text editing software for each option, find the Server Port=3389 line and change the 3389 to a custom port. Save it and import it into the Client Connection Manager. It will prompt “There is already a connection to use this. Configure, whether to overwrite it, select Yes. Now we can configure the server connected to the custom port with this connection in the Client Connection Manager.
Windows XP

Open the mstsc.exe window. Press the Options button to expand the window and there will be five tabs: General, Display, Local Resources, Run, and Advanced. Fill in the items as needed, then press the Save As button in the General tab. Mstsc.exe saves the custom connection configuration as an .rdp file. Open it with text editing software and see its format as follows:

screen mode id:i:1

desktopwidth:i:800

desktopheight:i:600< Br>

session bpp:i:8

winposstr:s:2,3,195,73,843,580

auto connect:i:0

Full address:s:192.168.0.9

compression:i:1

bitmapcachepersistenable:i:1

keyboardhook:i:2

audiomode:i :2

redirectdrives:i:1

redirectprinters:i:1

redirectcomports:i:1

displayconnectionbar:i:1

username:s:tsinternetuser

domain:s:JOB

alternate shell:s:

shell working directory:s:

is very obvious, It can be seen that the format of this file is: Option: Data Type (i-integer/s-string): The data value of this option.

There is no such option for connecting to a port on the server. So you need to add it manually and add a line to it.

server port:i:×××× (×××× server custom port).

You can also save the middle item; write it directly to server port: ××××.

Run mstsc.exe and open the .rdp file to connect to this custom port.

Copyright © Windows knowledge All Rights Reserved