{"id":8211,"date":"2025-03-24T10:59:19","date_gmt":"2025-03-24T05:29:19","guid":{"rendered":"https:\/\/www.veeble.com\/kb\/?p=8211"},"modified":"2025-04-28T15:18:39","modified_gmt":"2025-04-28T09:48:39","slug":"change-the-default-rdp-port-in-window","status":"publish","type":"post","link":"https:\/\/www.veeble.com\/kb\/change-the-default-rdp-port-in-window\/","title":{"rendered":"5 Easy Steps to Change the Default RDP Port in Windows"},"content":{"rendered":"\n<p>Remote Desktop Protocol (RDP) allows users to connect to a Windows server remotely, making it an essential tool for system administrators and remote workers. However, since RDP uses the default port <strong>3389<\/strong>, it is frequently targeted by hackers attempting brute-force attacks and unauthorized access. Change the default RDP port in Windows, which enhances security by reducing the risk of automated attacks and making your system less visible to cyber threats.<\/p>\n\n\n\n<p>By modifying the RDP port, you add an extra layer of protection against malicious bots and attackers scanning for open ports. Change the default RDP port to make your system less vulnerable to brute-force attacks and unauthorized access. This simple yet effective security measure helps protect sensitive data and prevent unauthorized login attempts. In this guide, I will walk you through the step by step process of changing the RDP port in Windows, configuring firewall settings, and ensuring a secure remote connection.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"prerequisites\">Prerequisites<\/h2>\n\n\n<ul class=\"wp-block-list\">\n<li>Administrator access to the Windows server .<\/li>\n\n\n\n<li>Firewall access to allow the new RDP port.<\/li>\n\n\n\n<li>Backup of the Windows Registry before making changes.<\/li>\n<\/ul>\n\n\n<h2 class=\"wp-block-heading\" id=\"steps-to-change-the-default-rdp-port-in-windows\">Steps to Change the Default RDP Port in Windows<\/h2>\n\n<h3 class=\"wp-block-heading\" id=\"1-open-the-windows-registry-editor\">1. Open the Windows Registry Editor<\/h3>\n\n\n<ol class=\"wp-block-list\">\n<li>Press <strong>Win + R<\/strong> on your keyboard to open the <strong>Run<\/strong> dialog box.<\/li>\n<\/ol>\n\n\n\n<p>     2. Type <code>regedit<\/code> and press <strong>Enter<\/strong>. This will launch the <strong>Registry Editor<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-21-124016.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"422\" src=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-21-124016-1024x422.jpg\" alt=\"regedit\" class=\"wp-image-8262\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-21-124016-1024x422.jpg 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-21-124016-300x124.jpg 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-21-124016-768x317.jpg 768w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-21-124016.jpg 1440w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-ast-global-color-2-color has-text-color has-link-color wp-elements-44cb5a7efc407bfa50fde5eff12b7e48\">3. In the <strong>Registry Editor<\/strong>, navigate to : <\/p>\n\n\n\n<p class=\"has-vivid-red-color has-ast-global-color-5-background-color has-text-color has-background\"><code>HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\TerminalServer\\WinStations\\RDP-Tcp<\/code><\/p>\n\n\n\n<p>Look for the entry named <strong>PortNumber<\/strong> in the right-hand pane.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-21-124502.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"479\" src=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-21-124502-1024x479.png\" alt=\"change port number in RDP\" class=\"wp-image-8263\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-21-124502-1024x479.png 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-21-124502-300x140.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-21-124502-768x359.png 768w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-21-124502.png 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n<h3 class=\"wp-block-heading\" id=\"2-modify-the-rdp-port\"> 2. Modify the RDP Port<\/h3>\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Double-click on <strong>PortNumber<\/strong> to edit its value.<\/li>\n\n\n\n<li>In the <strong>Edit DWORD (32-bit) Value<\/strong> window, select <strong>Decimal<\/strong> under <strong>Base<\/strong>.<\/li>\n\n\n\n<li>To change the default RDP port, change the value from <strong>3389<\/strong> to a new port number of your choice (e.g., <strong>448<\/strong>8 or any number between <strong>1024<\/strong> and <strong>65535<\/strong>).<\/li>\n\n\n\n<li>Click <strong>OK<\/strong> to save the changes.<\/li>\n\n\n\n<li>Close the <strong>Registry Editor<\/strong>.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-21-124601.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"392\" src=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-21-124601-1024x392.png\" alt=\"Edit DWord\" class=\"wp-image-8264\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-21-124601-1024x392.png 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-21-124601-300x115.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-21-124601-768x294.png 768w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-21-124601.png 1055w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n<h3 class=\"wp-block-heading\" id=\"3-configure-windows-firewall-to-allow-the-new-rdp-port\">3. Configure Windows Firewall to Allow the New RDP Port<\/h3>\n\n\n<p>Since we changed the RDP port, we need to allow it through<a href=\"https:\/\/www.computerhope.com\/jargon\/w\/windows-defender-firewall.htm\" target=\"_blank\" rel=\"noopener\"> <strong>Windows Defender Firewall<\/strong>.<\/a><\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Open <strong>Control Panel<\/strong> and go to <strong>Windows Defender Firewall<\/strong>.<\/li>\n\n\n\n<li>Click on <strong>Advanced settings<\/strong> on the left sidebar.<\/li>\n\n\n\n<li>In the <strong>Windows Defender Firewall with Advanced Security<\/strong> window, click <strong>Inbound Rules<\/strong>.<\/li>\n\n\n\n<li>Click on <strong>New Rule<\/strong> in the right-hand panel.<\/li>\n\n\n\n<li>Select <strong>Port<\/strong> and click <strong>Next<\/strong>.<\/li>\n\n\n\n<li>Choose <strong>TCP<\/strong> and enter your new RDP port (e.g., <strong>448<\/strong>8) in the <strong>Specific local ports<\/strong> field.<\/li>\n\n\n\n<li>Click <strong>Next<\/strong>, select <strong>Allow the connection<\/strong>, and click <strong>Next<\/strong> again.<\/li>\n\n\n\n<li>Ensure all profiles (Domain, Private, Public) are checked and click <strong>Next<\/strong>.<\/li>\n\n\n\n<li>Name the rule (e.g., &#8220;New RDP Port Rule&#8221;) and click <strong>Finish<\/strong>.<\/li>\n<\/ol>\n\n\n<h3 class=\"wp-block-heading\" id=\"4-restart-the-rdp-service\">4. Restart the RDP Service<\/h3>\n\n\n<ol class=\"wp-block-list\">\n<li>For the changes to take effect, restart the Remote Desktop Service:<\/li>\n<\/ol>\n\n\n\n<p>    2. Open <strong>Command Prompt<\/strong> as Administrator (search <strong>cmd<\/strong>, right-click, and select <strong>Run as administrator<\/strong>).<\/p>\n\n\n\n<p>  3. Run the following command to stop and restart the RDP service. <\/p>\n\n\n\n<pre class=\"wp-block-code has-ast-global-color-5-color has-ast-global-color-2-background-color has-text-color has-background has-link-color wp-elements-04533ab976e72a977324f6dbd1521655\"><code><code>net stop termservice &amp;&amp; net start termservice<\/code><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-21-124732.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"551\" src=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-21-124732-1024x551.png\" alt=\"restart RDP service\" class=\"wp-image-8265\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-21-124732-1024x551.png 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-21-124732-300x161.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-21-124732-768x413.png 768w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-21-124732.png 1327w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Alternatively, you can restart your computer for the changes to take effect.<\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"5-connect-using-the-new-rdp-port\">5. Connect Using the New RDP Port<\/h3>\n\n\n<p>1. After changing the port, you must specify the new port when connecting via Remote Desktop:<\/p>\n\n\n\n<p>2. Open <strong>Remote Desktop Connection <\/strong>.<\/p>\n\n\n\n<p>3. In the <strong>Computer<\/strong> field, enter your server&#8217;s IP or hostname followed by a colon and the new port number.<\/p>\n\n\n\n<p class=\"has-vivid-red-color has-text-color has-link-color has-medium-font-size wp-elements-4c4f0097c11f4d635a5fcbddd2e75f1f\"><strong>IP:4488<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><a href=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-21-125035.png\"><img loading=\"lazy\" decoding=\"async\" width=\"605\" height=\"379\" src=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-21-125035.png\" alt=\"Change the Default RDP Port in Window\" class=\"wp-image-8266\" style=\"width:414px;height:auto\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-21-125035.png 605w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-21-125035-300x188.png 300w\" sizes=\"auto, (max-width: 605px) 100vw, 605px\" \/><\/a><\/figure>\n\n\n\n<p class=\"has-ast-global-color-2-color has-text-color has-link-color wp-elements-1d20ff000cabf73430a04287052ab4bf\"><\/p>\n\n\n\n<p>4. Click <strong>Connect<\/strong> and enter your credentials to log in.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h2>\n\n\n<p>Change the default RDP port  also enhances security by reducing exposure to brute-force attacks and unauthorized login attempts. By using a non-standard port above <strong>1024<\/strong> but below <strong>65535<\/strong>, you make it more difficult for attackers to scan and exploit your remote desktop connection. However, simply changing the port is not enough. It&#8217;s crucial to update your <strong>Windows Firewall rules<\/strong> also. <\/p>\n\n\n\n<p>At <strong><a href=\"https:\/\/www.veeble.com\/\">Veeble<\/a><\/strong>, we offer secure and high performance <strong><a href=\"https:\/\/www.veeble.com\/windows-vps\/\">Windows RDP<\/a> <\/strong>solutions designed for seamless remote access with enhanced security features. Whether you&#8217;re a business professional, developer, or trader, our <a href=\"https:\/\/www.veeble.com\/windows-vps\/\">Veeble Windows RDP<\/a> services provide optimized performance, dedicated resources, and advanced security configurations to keep your connections safe.<\/p>\n\n\n\n<p>By implementing these security measure, you can significantly improve the protection of your Windows server  against cyber threats, ensuring reliable and secure remote access.<\/p>\n\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-uagb-call-to-action uagb-block-f4d7ce1d wp-block-button\"><div class=\"uagb-cta__wrap\"><h3 class=\"uagb-cta__title\">Windows Hosting with 24\/7 Support<\/h3><p class=\"uagb-cta__desc\">Round-the-clock expert support for all your Windows hosting needs, including Plesk and server assistance. We&#8217;re always here to help!<\/p><\/div><div class=\"uagb-cta__buttons\"><a href=\"https:\/\/www.veeble.com\/in\/windows-hosting\/\" class=\"uagb-cta__button-link-wrapper wp-block-button__link\" target=\"_blank\" rel=\"noopener noreferrer\">Start Hosting<svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\"><path d=\"M504.3 273.6l-112.1 104c-6.992 6.484-17.18 8.218-25.94 4.406c-8.758-3.812-14.42-12.45-14.42-21.1L351.9 288H32C14.33 288 .0002 273.7 .0002 255.1S14.33 224 32 224h319.9l0-72c0-9.547 5.66-18.19 14.42-22c8.754-3.809 18.95-2.075 25.94 4.41l112.1 104C514.6 247.9 514.6 264.1 504.3 273.6z\"><\/path><\/svg><\/a><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Remote Desktop Protocol (RDP) allows users to connect to a Windows server remotely, making it an essential tool for system administrators and remote workers. [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":8336,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[16],"tags":[],"class_list":["post-8211","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows"],"uagb_featured_image_src":{"full":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/blog-images-7.jpg",1366,768,false],"thumbnail":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/blog-images-7-150x150.jpg",150,150,true],"medium":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/blog-images-7-300x169.jpg",300,169,true],"medium_large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/blog-images-7-768x432.jpg",768,432,true],"large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/blog-images-7-1024x576.jpg",1024,576,true],"1536x1536":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/blog-images-7.jpg",1366,768,false],"2048x2048":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2025\/03\/blog-images-7.jpg",1366,768,false]},"uagb_author_info":{"display_name":"Nayana Nair","author_link":"https:\/\/www.veeble.com\/kb\/author\/nayana\/"},"uagb_comment_info":0,"uagb_excerpt":"Remote Desktop Protocol (RDP) allows users to connect to a Windows server remotely, making it an essential tool for system administrators and remote workers. [&hellip;]","_links":{"self":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/8211","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/comments?post=8211"}],"version-history":[{"count":2,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/8211\/revisions"}],"predecessor-version":[{"id":8772,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/8211\/revisions\/8772"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media\/8336"}],"wp:attachment":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media?parent=8211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/categories?post=8211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/tags?post=8211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}