How to modify the XP remote admin default Port _ Registry

Source: Internet
Author: User
Tags server port mstsc
Since Windows 2000, Microsoft has provided a Terminal Services (Terminal Server) service that can deliver remote desktops to local. Through this service, visual remote management can be easily implemented. Windows XP also provides this service after Windows 2000. The Terminal Server client program in Windows XP is further developed than that in Windows 2000, and many features are 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 supports True color and can be used in full screen.

3) and no installation, 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 know this feature of Windows use special software or other methods to scan the port. It is very dangerous to discover that the port is open for intrusion. So, in practice, you need to change the port of the Terminal server.

Modify the default port for Terminal Server as follows:

   1. Server-side modifications

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. Modification of client

   Windows ?

Run Client Connection Manager to create a new connection to the server that you just modified, and then export it to a Server.cns file, the. cns file is an ASCII file that stores the options for this connection, opens the file with text-editing software, and finds Serve R port=3389 This line converts 3389 to a custom port, saves it, and then imports it into Client Connection Manager, which prompts "there is already a connection using this configuration, overwrite it," and select Yes. Now we can connect to the custom port server with this connection configuration in Client Connection Manager.

   Windows XP

Open the Mstsc.exe window. Press the Options button to expand the window, with the general, display, local resources, run, advanced five tabs. Fill in the items as needed, and then press the Save As button on the General tab. Mstsc.exe will save the custom connection configuration as an. rdp file. Open it with a text-editing software to see its format as follows:

Screen mode id:i:1

desktopwidth:i:800

desktopheight:i:600

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:

Obviously, you can see that the file is in the format: option: Data type (i-integer/s-string): The data value of this option.

There are no such options for connecting to a port on the server. So you need to add it manually and add a row to it.

Server Port:i:xxxx (a custom port for XXXX server).

You can also omit the intermediate items; write directly to the server port:xxxx.

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.