Remote desktop modification ports require editing the registry and adjusting the firewall rules. 1. Modify the PortNumber under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp, set the new port number between 1-65535 (such as 3390). It is recommended to avoid common ports and backup the registry in advance; 2. Enter the advanced settings of "Windows Defender Firewall", modify or create new inbound rules to allow new ports to pass the TCP protocol, and synchronize third-party firewalls or security group policies; 3. Add: new port (such as 192.168.1.100:3390) after the IP address when connecting, and you can also save a custom .rdp file for subsequent use. The entire process requires attention to the port range, firewall configuration and connection format.
Remote desktop uses port 3389 by default, but for security reasons, many people will choose to modify this port number. In fact, the operation is not complicated, just pay attention to a few key points and you can complete it smoothly.

Modify the registry to change the remote desktop port
The Windows system controls the port settings of the remote desktop through the registry, so you need to edit the registry key to complete the changes.
The specific path is: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp
Find PortNumber
item here, double-click and select "Decimal", and then enter the new port number you want (such as 3390).

What should be noted is:
- The new port number must be between 1 and 65535
- It is recommended to avoid common ports, such as 80, 443, 21, etc., to prevent conflicts.
- It is recommended to back up the registry before modification to avoid misoperation and causing system abnormalities.
The firewall needs to release a new port
After changing the port, if the firewall rules are not adjusted, the external connection will still not be able to be connected.
Go to "Control Panel" -> "Windows Defender Firewall" -> "Advanced Settings", find the rules related to "Remote Desktop" in the inbound rules, right-click "Properties", switch to the "Protocols and Ports" tab, and change the port number to the one you just set.

Or you can create a new inbound rule that allows specific ports to be accessed through the TCP protocol.
If you are using a security group policy of a third-party firewall or server provider, remember to open this port in the corresponding location.
Remember to add the new port number when connecting
After the modification, you cannot just enter the IP address when connecting, you must add :新端口
.
For example, it was originally 192.168.1.100
, but now it needs to be written as 192.168.1.100:3390
.
If you connect to this machine frequently, you can save a custom .rdp
file and specify the port in it, so you don't have to manually enter it every time in the future.
Basically that's it. The whole process is not too difficult, but there are several details that are easy to ignore, such as firewall rules and port number range limitations. Just pay more attention to the operation.
The above is the detailed content of How to change the Remote Desktop port?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

The steps to create a custom brush in Photoshop are as follows: 1. Select a pattern with clear edges and suitable for brushes, such as hand-painted textures or photo parts, and adjust it to the appropriate size; 2. Use the "Magic Wand Tool" or "Quick Selection Tool" to remove the background to ensure that the pattern is in an independent selection; 3. Create a basic brush through "Edit > Define Brush Presets"; 4. Adjust the parameters such as "Shape Dynamic", "Scatter", "Text" and "Transfer" in the "Brush" panel to make the strokes more natural; 5. Finally, click "Save As Brush" to save as a .abr file for convenience of subsequent use and sharing.

Photoshop's quick selection tool is suitable for selecting areas with similar colors and clear boundaries. The usage methods include: 1. Find and activate the tool, right-click or long-press to switch or press the shortcut key W to ensure that the layer is unlocked; 2. Adjust the brush size, combine the Alt or Option key to switch the selection mode, Shift key to add selection, and improve accuracy through the option bar setting sampling method; 3. Use the "Select the Subject" function to assist in selection, and then manually optimize edge details, especially suitable for portraits or product images.

When AutoCAD file is corrupted, you can take the following steps to try to restore: 1. Check the automatic backup of the file, check whether there is a .bak or .sv$ file in the folder where the original .dwg file is located, and rename the .bak file to .dwg to open it; 2. Use the RECOVER command to try to repair the file, and if it fails, use the -OPEN command to open the file for partial recovery; 3. Use third-party tools such as DataNumenDWGRepair, RecoveryToolboxforDWG, etc. to deal with seriously damaged files. To prevent future damage, you should save regularly and use "Save As" to refresh the file structure, keep the software updated, avoid saving through network drives, enable automatic save and set up

Remote Desktop connection problems can be checked through the following steps: 1. Check the network and firewall settings to ensure that the TCP3389 port is open; 2. Confirm that the remote desktop function is enabled and supported by non-home version systems; 3. Verify user permissions and belong to the "RemoteDesktopUsers" group or administrator; 4. Handle black screen or lag, adjust the display options or restart the remote computer. Check them one by one in order, and most problems can be solved.

To remove PDF password protection, use Adobe AcrobatPro and have the document owner password. The steps include: 1. Open Adobe AcrobatPro and select a password-protected PDF file; 2. Enter the correct owner password; 3. Go to "Tools" > "Protection" > "Encryption" > "Remove Security"; 4. Click "OK" in the pop-up window to confirm the removal. If AcrobatPro is not available, you can ask others for assistance or use third-party decryption tools, but you need to pay attention to privacy risks. Common problems include invalid password, grayed out security settings, and prompting for passwords after removal. The solution is to check password input, try to convert file formats, or update software versions. If it cannot be resolved, please contact A

Adobe Photoshop does not have a permanent free version, but can be legally used in the following ways: 1. The official website provides a 7-day free trial, complete functions but automatic renewal is required; 2. Use a simplified version based on the browser (Beta), which supports basic editing functions; 3. Students or teachers can obtain a full-featured version through the school education plan; 4. Consider alternative software such as GIMP, Photopea, Krita or Canva Pixlr to meet daily needs. The above methods can meet the needs of different users and ensure legal and compliant use.

Friends who are just beginning to get involved in AutoCAD3D modeling can start with the following steps: 1. Start practicing from basic geometry (such as cubes, cylinders, spheres), use BOX, CYLINDER, SPHERE and other commands to build simple models and combine them into complex structures; 2. Master Boolean operations (UNION merge, SUBTRACT cutting, INTERSECT intersection) to create solid models with holes or combined structures; 3. Pay attention to the settings of the view and coordinate system (UCS), switch the view angle to understand the structure, and ensure the correct operation direction by adjusting UCS; 4. After completing the modeling, it can be exported to STL, STEP or IGES format for easy printing or sharing, and use SECTIONPLANE
