Changing the Remote Desktop Connection Port for Your Windows Server

You can change the Remote Desktop Connection port for your Windows server as an added security measure.

To Change the Remote Desktop Connection Port for Your Windows Server

  1. Log in to Remote Desktop as an administrative user.
  2. Click the Start Menu and select Run.
  3. Type regedit.exe and click OK.
  4. Navigate through the System Registry and select the following registry key:
    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber
  5. Right-click and select Modify.
  6. Select the Decimal radial option.
  7. Change the value to your desired port number.
  8. Restart your Web server.

Note: If your server uses a firewall, you need to open the new port on it. If you don't, you cannot access your server over RDC. The process to open the port depends on your firewall.

Opening Ports on Your Firewall

Note: The instructions below are for ASDM version 6.4. However, if you have a PIX 501 Firewall or an ASA 5505 Firewall running an older version of ASDM, the menus might differ slightly, but the process is similar.

  1. In a Web browser, navigate to: https://[your firewall management IP address]. You might receive a number of security certificate warnings. If you accept the certs and save them as Trusted, you will avoid warnings in the future.)

    Note: Depending on which Cisco ASDM version you have installed, several options might display. If so, click Run ASDM Applet.

  2. When prompted, type your server User name and firewall password. Click OK. You will be prompted to login twice.

    Note: Your browser must have Java enabled and allow pop-ups from your firewall management IP.

  3. In the Device Manager application tool bar, click the Configuration icon.
  4. Click Firewall in the lower left corner.
  5. In the Firewall section, click Access Rules.
  6. Click +Add, and then select Add Access Rule....
  7. Complete the following:
    • Interface — Select outside.
    • Action — Select Permit.
    • Source — Select any.
    • Destination — Select any.
    • Service — Complete the following steps:
      1. Click ....
      2. Click +Add, and then select TCP Service Group.
      3. Enter a Group Name and Description.
      4. Select Create new member.
      5. In the Port/Range field, enter the port you want to use.
      6. Click Add>>.
      7. Click OK.
  8. Select the new Service you added, and then click OK.
  9. Click OK.
  10. Click Apply.

Hjalp denne artikel?
Tak for din feedback.
Det glæder os, at vi kunne hjælpe! Er der andet, vi kan gøre for dig?
Beklager. Er der andet, vi kan gøre for at hjælpe dig?