How to modify the remote management default port

  
in Windows XP

Since Windows 2000, Microsoft has provided a Terminal Services (Terminal Server) service that can deliver remote desktops to the local. 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. You can:

HKEY_LOCAL_MACHINESystemCurrentControlSetControlTerminal ServerWdsRepwdTdsTcp

HKEY_LOCAL_MACHINESystemCurrentControlSetControlTerminal ServerWinStationsRDP-Tcp

2. Client modification

Windows 2000

Running Client Connection Manager Create a new connection to the server you just modified and export it to the server.cns file. The cns file is an ASCII file that stores the options for this connection. Open the file with text editing software and find the Server Port=3389 line. Change the 3389 to a custom port. Save it and import it into the Client Connection Manager. It will prompt " Already have a connection to use this configuration, 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 to open this. The rdp file can be connected to this custom port.


Copyright © Windows knowledge All Rights Reserved