{"id":1498,"date":"2018-11-16T11:54:22","date_gmt":"2018-11-16T11:54:22","guid":{"rendered":"http:\/\/www.RiptideHosting.com\/blog\/?p=1498"},"modified":"2019-10-18T15:34:22","modified_gmt":"2019-10-18T15:34:22","slug":"change-rdp-listening-port","status":"publish","type":"post","link":"https:\/\/www.RiptideHosting.com\/blog\/change-rdp-listening-port\/","title":{"rendered":"Change RDP Listening Port"},"content":{"rendered":"<p><strong><u>Change RDP Listening Port from default 3389<\/u><\/strong><\/p>\n<p>Changing the RDP listening port to a non-default port may not defeat a determined hacker but it should reduce attacks from automated bots.\u00a0 **Remember to create new firewall rules to allow the new port number so you don\u2019t accidently lock yourself out.\u00a0 And remember that end-users will need to add the new port # to the IP address\/computer name when logging in, such as 123.456.78.888<u>:5555<\/u> where the new listening port is 5555.\u00a0 If you have MAC users, you should verify if the RD Client for MACs support a port other than 3389.<\/p>\n<ul>\n<li>Change port in Registry first &#8211; <a href=\"http:\/\/support.microsoft.com\/kb\/306759\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/support.microsoft.com\/kb\/306759<\/a> (older link but still should apply)<\/li>\n<li>Regedit, then locate and click the following registry subkey: HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\TerminalServer\\WinStations\\RDP-Tcp\\PortNumber On the\u00a0Edit\u00a0menu, click\u00a0Modify, and then click\u00a0Decimal. Type the new port number, and then click\u00a0OK. Quit Registry Editor.)<\/li>\n<li>Create two new Windows Firewall rules (one for TCP and one for UDP) for the new port number. For example, in a administrative command prompt, type this to create two new inbound rules (tcp &amp; upd) where 35000 is the new port you used in the registry change:<\/li>\n<\/ul>\n<p>netsh advfirewall firewall add rule name=&#8221;Remote Desktop (TCP-In) 35000&#8243; dir=in localport=35000 protocol=tcp action=allow<\/p>\n<p>netsh advfirewall firewall add rule name=&#8221;Remote Desktop (UDP-In) 35000&#8243; dir=in localport=35000 protocol=udp action=allow<\/p>\n<p>You can compare these new rules to the existing rules in the firewall.<\/p>\n<ul>\n<li>Reboot server<\/li>\n<li>Then Login using new port number using :ZZZZ where ZZZZ is new RDP listening port \u2013 for example, 250.197.92.199:ZZZZ (and also test that 3389 to confirm it won\u2019t work).<\/li>\n<li>Disable previous RDP Firewall rules that allowed port 3389<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Change RDP Listening Port from default 3389 Changing the RDP listening port to a non-default port may not defeat a determined hacker but it should reduce attacks from automated bots.\u00a0 **Remember to create new firewall rules to allow the new port number so you don\u2019t accidently lock yourself out.\u00a0 And remember that end-users will need [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-1498","post","type-post","status-publish","format-standard","hentry","category-all-posts"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/posts\/1498","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/comments?post=1498"}],"version-history":[{"count":1,"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/posts\/1498\/revisions"}],"predecessor-version":[{"id":1553,"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/posts\/1498\/revisions\/1553"}],"wp:attachment":[{"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/media?parent=1498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/categories?post=1498"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/tags?post=1498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}