A cautionary note. Changing default ports on the HP MediaSmart Windows Home Server does not work well. It blocks HP software updates. Microsoft updates are not affected. See the special note for HP MediaSmart servers at the end of this wiki for how to solve this problem.
What you will need
- Remote Desktop Connection or Advanced Admin Console
Assign the new ports
Access your WHS via RDP or Advanced Admin Console or, if you have them, monitor and keyboard. Open up the Control Panel and select Administrative Tools/ Internet Information Services (IIS) Manager. Expand servername in the left hand pane by clicking on the plus sign. Then do the same for Web Sites. Right click on Default Websites to open up the properties box. Change the TCP port number from 80 to a new port number. I used 8080 because it was easy to remember but you can use whatever you want. Then change the SSL port number from 443 to a new port number. I used 4433. Click OK and close all of the windows.
Open the new ports in the firewall
Again open up the control panel but this time select Windows Firewall. Click on the Exceptions tab. Find the entries labeled HTTP, there will be two of them. Select one and click Edit. You want the one for port 80 so if you that was not your first selection try the next one. Change port 80 to what you chose for the TCP port in the previous section. Now do the same for HTTPS and change port 443 to your new SSL port number. Reboot your server for all of this to take effect.
You could also leave ports 80 and 443 open in the firewall and just open the new ports. But since you are not going to be using 80 and 443 anyway my opinion is that for security reasons it is better not to have them open.
Forward the ports from your Router
You will need to access your router and forward the ports you have chosen to the IP address of your WHS. Since this procedure is different from router to router you will have to figure that part out on your own.
Configure your WHS Remote Access
Now comes the tricky part. Open up your Windows Home Server Console and select Settings/Remote Access. If web sites are not already on click Turn On. Under Router Configuration you will have errors. Click Details and it will most likely tell you that it cannot verify that your web site is available on your home server. Ignore this.
Under Domain Name I will assume that you already have a Windows Live Domain Name. If not, you will need to run the wizard to obtain one. If this is a second home server you will need a another (different) Windows Live ID to obtain the domain name for this second server. Once the wizard has completed and everything is configured click on Details. You should have green check marks next to "Verifying your internet connection to Windows Live", "Updating Windows Live Custome Domains" and "Verifying Windows Live Custom Domains records". You will probably have red Xs next to "Verifying your web site is accessable from the internet" and "Verifying remote access is accessable from the internet". Ignore these warnings. Close all windows on the WHS desktop.
Now go to another computer, open up a browser and attempt to access the WHS web site. You will need to use http://yourdomainname.com:8080 (or what ever your new TCP port number is) or use https://yourdomainname.com:4433 (or what ever your new SSL port number is). You can get to the public web site using HTTP but if you want to log in and access private web sites or shared folders you need to use HTTPS.
After going through this procedure you should be able to access the basic web sites and shared folders. But, you will not be able to remotely access other computers via the web sites unless you have also forwarded port 4125 (or established an alternate port) to your WHS. If your ISP blocks port 4125, or if you have two (or more) Windows Home Servers, you will need to do the following.
To get the remote access to work, access your WHS via RDP or other means as above. Using My Computer, navigate to C:\Inetpub\remote\ and open the file rdpload.aspx in notepad (it might be prudent to make a backup copy first). Not to far down the page should be the string:
MsRdpClient.AdvancedSettings2.RDPPort = port;
Just change the word port to a port that is open on your system such as 801:
MsRdpClient.AdvancedSettings2.RDPPort = 801;
Save the file and close Notepad.
This should change the external port that is being used for remote access. In your router, set up another forward to direct external port 801 (or whatever port you used) to internal port 4125 on the (second) server. After rebooting the system you can now connect from both web pages.
Special Note for HP MediaSmart Servers
Changing the port on the default website from port 80 to some alternate port will cause the HP updates to stop functioning. When you click "Check for Updates" you will continuously get the error message "Cannot connect to the MediaSmart server web server at this time". There is a relative ly simple fix to cure this problem.
Access your WHS via RDP or alternate means as above. Navigate to Control Panel > Administrative Tools > Internet Information Services (IIS) Manager. Expand Local Computer. Expand Web Sites. Right click on Default Web Site and select Properties. In the Web Site tab click Advanced. Under Multiple identies for this web site click Add. In the Add/Edit Web Site Identification screen add port 80 in the TCP port box. Click OK to close all of the boxes and you are done.
This page was originally written by Etoa for We Got Served.