Windows Server 2019

Changing RDWeb default Port on Windows Server 2019

&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2531 " id&equals;"quads-ad2531" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine;<h4>Story&colon;<&sol;h4>&NewLine;<p>When you install RDS on a server which already uses the port 443&comma; you will get the following error when you try to access RDWeb main page&period;<&sol;p>&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2529 " id&equals;"quads-ad2529" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine;&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2530 " id&equals;"quads-ad2530" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine;&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2525 " id&equals;"quads-ad2525" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine;&NewLine;<p>Reason for this is the server you installed RDWeb on is most likely already using the port 443 or something else&period;<&sol;p>&NewLine;<h4>Error Message&colon;<&sol;h4>&NewLine;<p>When trying to access RDWeb on the same server you&&num;8217&semi;ll get the following error&colon;<&sol;p>&NewLine;<p>Service Unavailable<&sol;p>&NewLine;<p>Http Error 503&period; The Service is unavailable<&sol;p>&NewLine;<p><a href&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2020&sol;07&sol;clip&lowbar;image001&period;png"><img style&equals;"margin&colon; 0px&semi; display&colon; inline&semi; background-image&colon; none&semi;" title&equals;"clip&lowbar;image001" src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2020&sol;07&sol;clip&lowbar;image001&lowbar;thumb&period;png" alt&equals;"clip&lowbar;image001" width&equals;"851" height&equals;"199" border&equals;"0" &sol;><&sol;a> &NewLine;&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2526 " id&equals;"quads-ad2526" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine; &NewLine;<&sol;p>&NewLine;<h4>Troubleshooting<&sol;h4>&NewLine;<p>To Troubleshoot&comma; Let&&num;8217&semi;s see what is using the port 443&period;<&sol;p>&NewLine;<p>Run CMD or PowerShell as an Administrator and type the following command<&sol;p>&NewLine;<pre class&equals;"EnlighterJSRAW" data-enlighter-language&equals;"generic">Netstat -anbo &vert; findstr 443<&sol;pre>&NewLine;<p><a href&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2020&sol;07&sol;clip&lowbar;image002&period;png"><img style&equals;"margin&colon; 0px&semi; display&colon; inline&semi; background-image&colon; none&semi;" title&equals;"clip&lowbar;image002" src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2020&sol;07&sol;clip&lowbar;image002&lowbar;thumb&period;png" alt&equals;"clip&lowbar;image002" width&equals;"598" height&equals;"177" border&equals;"0" &sol;><&sol;a><&sol;p>&NewLine;<h4>Changing Port to 1443 or 8443<&sol;h4>&NewLine;<p>Let&&num;8217&semi;s try changing the Port using the RD Gateway Manager<&sol;p>&NewLine;<p>From the Gateway Manager click on the Properties on the right pane &gt&semi; Go to Transport Settings Tab and change the HTTPS port to 1443 or 8443<&sol;p>&NewLine;<p><a href&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2020&sol;07&sol;clip&lowbar;image003&period;png"><img style&equals;"margin&colon; 0px&semi; display&colon; inline&semi; background-image&colon; none&semi;" title&equals;"clip&lowbar;image003" src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2020&sol;07&sol;clip&lowbar;image003&lowbar;thumb&period;png" alt&equals;"clip&lowbar;image003" width&equals;"1028" height&equals;"623" border&equals;"0" &sol;><&sol;a><&sol;p>&NewLine;<h4>Changing Ports using Registry<&sol;h4>&NewLine;<p>Navigate to and make sure you first take a backup &lpar;Export the key&rpar;<&sol;p>&NewLine;<p>&lbrack;HKLM&bsol;SOFTWARE&bsol;Microsoft&bsol;Windows NT&bsol;CurrentVersion&bsol;TerminalServerGateway&bsol;Config&bsol;Core&rsqb;<&sol;p>&NewLine;<p>Change the following registry value<&sol;p>&NewLine;<p>IsUdpEnabled REG&lowbar;DWORD 0<&sol;p>&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2528 " id&equals;"quads-ad2528" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine;&NewLine;<p><a href&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2020&sol;07&sol;clip&lowbar;image004&period;png"><img style&equals;"margin&colon; 0px&semi; display&colon; inline&semi; background-image&colon; none&semi;" title&equals;"clip&lowbar;image004" src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2020&sol;07&sol;clip&lowbar;image004&lowbar;thumb&period;png" alt&equals;"clip&lowbar;image004" width&equals;"838" height&equals;"397" border&equals;"0" &sol;><&sol;a><&sol;p>&NewLine;<p>Backup and change the following port value to the intended one<&sol;p>&NewLine;<p>&lbrack;HKLM&bsol;SOFTWARE&bsol;Microsoft&bsol;Windows NT&bsol;CurrentVersion&bsol;TerminalServerGateway&bsol;Config&bsol;Core&rsqb;<&sol;p>&NewLine;<p>HttpsPort REG&lowbar;DWORD &lpar;8443&rpar;<&sol;p>&NewLine;<p>Change the base to Decimal to type the write port number&period;<&sol;p>&NewLine;<p><a href&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2020&sol;07&sol;clip&lowbar;image005&period;png"><img style&equals;"margin&colon; 0px&semi; display&colon; inline&semi; background-image&colon; none&semi;" title&equals;"clip&lowbar;image005" src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2020&sol;07&sol;clip&lowbar;image005&lowbar;thumb&period;png" alt&equals;"clip&lowbar;image005" width&equals;"814" height&equals;"388" border&equals;"0" &sol;><&sol;a><&sol;p>&NewLine;<h4>Restart Service<&sol;h4>&NewLine;<p>From PowerShell restart the service<&sol;p>&NewLine;<pre class&equals;"EnlighterJSRAW" data-enlighter-language&equals;"generic">net stop tsgateway&NewLine;net start tsgateway<&sol;pre>&NewLine;<p><a href&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2020&sol;07&sol;clip&lowbar;image006&period;png"><img style&equals;"margin&colon; 0px&semi; display&colon; inline&semi; background-image&colon; none&semi;" title&equals;"clip&lowbar;image006" src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2020&sol;07&sol;clip&lowbar;image006&lowbar;thumb&period;png" alt&equals;"clip&lowbar;image006" width&equals;"582" height&equals;"156" border&equals;"0" &sol;><&sol;a><&sol;p>&NewLine;<p>Let&&num;8217&semi;s see the listening port 8443<&sol;p>&NewLine;<p>From PowerShell type<&sol;p>&NewLine;<p>Netstat -anbo &vert; findstr 8443<&sol;p>&NewLine;<pre class&equals;"EnlighterJSRAW" data-enlighter-language&equals;"generic">Netstat -anbo &vert; findstr 8443<&sol;pre>&NewLine;<p><a href&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2020&sol;07&sol;clip&lowbar;image007&period;png"><img style&equals;"margin&colon; 0px&semi; display&colon; inline&semi; background-image&colon; none&semi;" title&equals;"clip&lowbar;image007" src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2020&sol;07&sol;clip&lowbar;image007&lowbar;thumb&period;png" alt&equals;"clip&lowbar;image007" width&equals;"556" height&equals;"73" border&equals;"0" &sol;><&sol;a><&sol;p>&NewLine;<p>Let&&num;8217&semi;s go to the main page and see if it works&period;&period;<&sol;p>&NewLine;<p>Voila&excl; Finally it worked<&sol;p>&NewLine;<p><a href&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2020&sol;07&sol;clip&lowbar;image008&period;png"><img style&equals;"margin&colon; 0px&semi; display&colon; inline&semi; background-image&colon; none&semi;" title&equals;"clip&lowbar;image008" src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2020&sol;07&sol;clip&lowbar;image008&lowbar;thumb&period;png" alt&equals;"clip&lowbar;image008" width&equals;"922" height&equals;"610" border&equals;"0" &sol;><&sol;a><&sol;p>&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2522 " id&equals;"quads-ad2522" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine;&NewLine;<p><a href&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2020&sol;07&sol;clip&lowbar;image009&period;png"><img style&equals;"display&colon; inline&semi; background-image&colon; none&semi;" title&equals;"clip&lowbar;image009" src&equals;"https&colon;&sol;&sol;www&period;moh10ly&period;com&sol;wp-content&sol;uploads&sol;2020&sol;07&sol;clip&lowbar;image009&lowbar;thumb&period;png" alt&equals;"clip&lowbar;image009" width&equals;"1028" height&equals;"425" border&equals;"0" &sol;><&sol;a><&sol;p>&NewLine;&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2523 " id&equals;"quads-ad2523" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine;&NewLine;

moh10ly

Share
Published by
moh10ly

Recent Posts

Reset passwords for Active Directory Users

Reset and manage your Active Directory users' Passwords Active Directory is one of the most…

3 years ago

Finding Exchange Database hidden mailboxes. ​

Finding Exchange Database hidden mailboxes. Story:Maybe you have been in this situation before, trying to…

3 years ago

Setting up ADConnect and PTA (Password auth through) servers agents behind proxy

If you're using a Proxy server in your firewall or in your network and have…

3 years ago

Get Report of Active Directory Locked Accounts and Machine they logged in from

Story:I got some clients  that have reported some of their users being locked out and…

3 years ago

Checking and Providing Full and SendAs delegate access on O365 Exchange Online

Delegate Permissions This is a code that I have wrote recently to check if an…

3 years ago

Retrieving attachments from Exchange mailbox using python

Story: I got a request from a client who constantly gets CVs and have to…

4 years ago

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298