Microsoft Windows uses a protocol called Remote Desktop Protocol (RDP) and uses port number 3389.

Check remote desktop port number

click the start button

Click the gear on the start menu

Windows Settings → System

Remote desktop advanced settings

Check port number

Change remote desktop port number

Registry backup

Enter “regedit”

Start Registry Editor

registry editor

Go to registry subkey

Modifying the port number (PortNumber)

Reboot to apply settings

Confirmation of changed port number

Firewall settings

Starting Windows Defender Firewall

Windows Defender Firewall → Inbound Rules

new rule

Choosing a rule type

protocol and port

operate

profile

name and description

Remote desktop connection by specifying port number

Windows10

Mac

What to do if you cannot connect to the remote desktop

How to use and configure Remote Desktop

How to use and set up Windows 10