Live support 24x7x365 · Instant activation on most plans Live chat · Open a ticket
RDP

How to Change default Port for Remote Desktop Connection

windows rdp server

In this article, we will discuss "How to Change default Port for Remote Desktop Connection". Remote Desktop Protocol is a proprietary protocol developed by Microsoft which provides a user with a graphical interface to connect to another computer over a network connection. The user employs RDP client software for this purpose, while the other computer must run RDP server software.

Open Remote Desktop Connection

  • Hit the Windows key
  • Now type “Remote Desktop Connection“ and press Enter Key.
  • It will open the Remote Desktop Connection Console.

Connect with Server

  • Enter the IP address of the server in the Computer field and click Connect.
  • (Optional) To set up file transfer or enable your clipboard for copy/paste, click Options.
  • Click the Local Resources tab, and select the Clipboard option.
  • Now click on connect button.
  • After this Enter Credentials of your server.
  • a prompt will appear, now click on the yes button.

Change default port

  • At first, Open Powershell ISE as an Administrator.
  • In the windows search bar type Powershell ISE
  • aws windows rdp
  • Now right click on Windows Powershell ISE and click Run as Administrator.
  • windows rdp black screen
  • Now click of new script button.
  • windows rdp change password
  • Now paste this command:
$portvalue = 3320
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "PortNumber" -Value $portvalue
New-NetFirewallRule -DisplayName 'RDPPORTLatest-TCP-In' -Profile 'Public' -Direction Inbound -Action Allow -Protocol TCP -LocalPort $portvalue
New-NetFirewallRule -DisplayName 'RDPPORTLatest-UDP-In' -Profile 'Public' -Direction Inbound -Action Allow -Protocol UDP -LocalPort $portvalue
  • windows rdp ctrl alt delete
  • Now click the Run Script button.
  • windows rdp logs
  • Now Restart your Server.
  • That's it, your server port is now changed.

Run it on HomeRDP

Admin RDP

A full Windows remote desktop with administrator access.

All 2 plans

Admin RDP #1

$9.99 /mo

  • 1 vCPU
  • 2 GB DDR4 RAM
  • 1 Gbps Internet Speed
Order

Admin RDP #2

$11.99 /mo

  • 2 vCPU
  • 2 GB DDR4 RAM
  • 1 Gbps Internet Speed
Order

Keep reading