Results 1 to 4 of 4
  1. #1

    How to Change Windows VPS RDP/RDC Port & Allow New Port?

    Hello,

    Changing a Default RDP Port to other port is recommended for your VPS Security, My English is good so I will add some images so you can easily understand this.

    Only for Windows 2008 R2


    Step 1:

    How to Change Default RDP Port?
    Login to your VPS Via RDP(Because VNC is slow so I recommended you to use RDP) and go to Start Menu and type "regedit.exe" in search box(without quota)
    (See Screenshot)


    In Registry Editor, Go to:
    Code:
    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber
    1. Now right click on "PortNumber" entry,
    2. Click on "Modify" option and then Select "Decimal" and change value from "3389" to other port number like 3399
    3. Press "OK" and Exit from Registry Editor.
    (Screen Shot)




    Step2:

    Allow your New RDP Port to Firewall?
    1. Go to Start Menu, Type "Windows Firewall" (without quota) and open "Windows Firewall with Advanced Security"
    (Screenshot - Open Firewall)

    2. In Firewall, Click on "Inbound Rules" and then click on "New Rules"
    (Screenshot)

    3. Select "Port" in list and then click on "Next"
    (Screenshot - Select Port - Stp 1)


    4.
    TCP is Selected by Default, We just need to enter our new RDP Port in "Specific Local Ports" so enter your new Port 3399(or your new other port) and then click "Next"
    (Screenshot - Step 2)

    5. We need to Select "Allow the connection" and then press "Next" button.

    6. Click on "Next" Button without changing anything.

    7. In name field enter "Remote Desktop Port" and then Press "Next" button.
    (Screenshot)

    8. Exit from Firewall and Reboot your VPS/Operating System.



    After few minute, When your VPS will become online then you will be able to access your RDP Account by using your IP: PORT in RDP Application.

    Eg: 233.233.233.x:3399 (Just for example)
    (Screen shoot)


    (Tip: Do not reboot your VPS without allowing your new port in Firewall otherwise you will be unable to access your RDP until you fix this via VNC/Console)

    Thanks.
    Last edited by DewlanceHosting; 10-28-2014 at 02:43 PM.
    Dewlance® Shared/Reseller/Master Reseller - US/UK/EU/FRK/CA - SSD
    WHMCS ReadyMadeKB - Tutorials for cPanel/InterWorx/Softaculous& Growing..
    DemoTiger.com - Buy Demo Videos for your Hosting Company

  2. #2
    Join Date
    Aug 2006
    Posts
    1,171
    New port: 3390

    Two lines:

    netsh advfirewall firewall add rule name="RDP Port" action=allow protocol=TCP dir=in localport=3390

    Create file .REG with:

    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp]
    "PortNumber"=dword:00000d3e
    Double click on the file .REG

    Reboot your VPS/Server
    Done.
    WebSitePanel/ MspControl / SolidCP / Smartermail / Installation / Configuration / Troubleshooting / Migrations
    Windows Server Management / Security / Hardening
    I speak English and Spanish

  3. #3
    Thanks for the tutorial.

  4. #4
    Just an advice.. If you have firewall, you should first allow the new port in firewall and then make the changes in registry..
    || Web Hosting Blog - Web Hosting security & latest web hosting industry Announcements
    || Web Hosting Discussion - A Web Hosting community

Similar Threads

  1. Dewlance: Windows RDP/RDC - $5/m - [UK]
    By DewlanceHosting in forum Other Hosting Offers
    Replies: 1
    Last Post: 02-02-2013, 11:31 PM
  2. Replies: 0
    Last Post: 12-27-2011, 03:47 PM
  3. Managed Server 10mbits-port,20mbits-port,50mbits-port,100mbits-port Unmetered
    By internetport in forum Dedicated Hosting Offers
    Replies: 0
    Last Post: 11-22-2008, 07:38 AM
  4. Email Server Port Problem - How to change/add port for SMTP
    By 0218 in forum Hosting Security and Technology
    Replies: 1
    Last Post: 02-19-2008, 04:46 AM
  5. Change SSH Port to FTP Port 21
    By jojo235 in forum Hosting Security and Technology
    Replies: 6
    Last Post: 03-22-2005, 06:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •